Skip to content
Discussion options

You must be logged in to vote

You can read more how celery processes signals here https://docs.celeryq.dev/en/stable/userguide/workers.html#process-signals and decide yourself what you want to do.

If you want to terminate your tasks on TERM, surely you can set DUMB_INIT_SESSID to 1: - this will propagate the TERM signal to all running celery tasks. Also you can use QUIT instead of term to make celery do it on it's own. the DUM_INIT_SESSID: 0 is simply to preserve default Celery behaviour when if it receives TERM, it does warm shutdown when it stops picking new tasks but it will let all running tasks to complete.

You can also send SIGTERM twice BTW. When Celery is in "warm shutdown" mode second TERM signal will initiat…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rileypeterson
Comment options

Answer selected by rileypeterson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants