Support for gunicorn's callbacks worker_int and worker_abort #1688
Unanswered
marcinbarczynski
asked this question in
Ideas
Replies: 1 comment 2 replies
-
Well... The premise is not even valid when using Can you link how |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Uvicorn worker can exit in two ways:
Gunicorn supports
worker_int
andworker_abort
callbacks that are run when a worker receives SIGINT and SIGABRT respectively. Unfortunately, the callbacks are not supported by uvicorn. That makes it impossible to reliably run a piece of code when a worker exits.How about adding supporting the gunicorn's callbacks?
Beta Was this translation helpful? Give feedback.
All reactions