Switch to using uvloop and upgrade granian for some ASGI fixes (#9494)

This commit is contained in:
Trenton H
2025-03-25 21:41:29 -07:00
committed by GitHub
parent 5db511afdf
commit 6e694ad9ff
3 changed files with 87 additions and 50 deletions

View File

@@ -14,7 +14,7 @@ if [[ -n "${PAPERLESS_FORCE_SCRIPT_NAME}" ]]; then
fi
if [[ -n "${USER_IS_NON_ROOT}" ]]; then
exec granian --interface asginl --ws "paperless.asgi:application"
exec granian --interface asginl --ws --loop uvloop "paperless.asgi:application"
else
exec s6-setuidgid paperless granian --interface asginl --ws "paperless.asgi:application"
exec s6-setuidgid paperless granian --interface asginl --ws --loop uvloop "paperless.asgi:application"
fi