I'm trying to build a project with a docker compose container stack and celery as a task scheduler.
Is there any possibility to gracefully shutdown the active celery tasks when the main worker process (PID: 1) received the SIGINT signal of the docker compose down
command?
Maybe someone here got experience with that kind of problem.
Thanks is advance.