feat: disable uvicorn worker lifespan (#2845)

### Description

Fix this Django exception: Django can only handle ASGI/HTTP connections,
not lifespan.
This commit is contained in:
Jonas L 2023-12-28 14:00:58 +01:00 committed by GitHub
parent 0e91a7db7d
commit 8743c84d0f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View file

@ -26,6 +26,7 @@ KillMode=mixed
ExecStart=@@VENV_DIR@@/bin/gunicorn \
--workers 4 \
--worker-class uvicorn.workers.UvicornWorker \
--lifespan off \
--log-file - \
--bind unix:/run/libretime-api.sock \
libretime_api.asgi