fix(api): move gunicorn worker config to python file (#2854)

### Description

Passing the --lifespan flag to gunicorn does not forward the option to
uvicorn.
This commit is contained in:
Jonas L 2023-12-29 17:47:50 +01:00 committed by GitHub
parent 35d7eace13
commit 43221d9d7f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 4 deletions

View file

@ -0,0 +1,5 @@
from uvicorn.workers import UvicornWorker # pylint: disable=import-error
class Worker(UvicornWorker):
CONFIG_KWARGS = {"lifespan": "off"}