GitHub user potiuk added a comment to the discussion: Signal propagation into 
DockerOperator container

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 initiate cold shutdown

GitHub link: 
https://github.com/apache/airflow/discussions/55129#discussioncomment-14274870

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to