🔧 chore(server.py): configure gunicorn to use UvicornWorker as the worker class for improved performance and compatibility
This commit is contained in:
parent
f9d9adf60b
commit
62711a08cd
1 changed files with 2 additions and 0 deletions
|
|
@ -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__()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue