mirror of
https://github.com/langflow-ai/langflow.git
synced 2026-07-25 21:36:48 +08:00
🔧 chore(server.py): configure gunicorn to use UvicornWorker as the worker class for improved performance and compatibility
This commit is contained in:
@ -4,6 +4,8 @@ from gunicorn.app.base import BaseApplication # type: ignore
|
||||
class LangflowApplication(BaseApplication):
|
||||
def __init__(self, app, options=None):
|
||||
self.options = options or {}
|
||||
|
||||
self.options["worker_class"] = "uvicorn.workers.UvicornWorker"
|
||||
self.application = app
|
||||
super().__init__()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user