Answer the question
In order to leave comments, you need to log in
How to stop the execution of a task with a subprocess in Celery?
I use celery in the django project, there is task routing for workers. There is ONE task for ONE worker, which can only be executed in ONE instance at a time (worker threads are limited).
How can you kill this task if necessary (provided that a shell subprocess is running in it) so that it is not a shame to use it in production. I see only the option to somehow restart the worker itself. But how I don't know.
Answer the question
In order to leave comments, you need to log in
Commands - https://docs.celeryproject.org/en/latest/userguide...
Or through the Flower interface and api - https://docs.celeryproject.org/en/latest/userguide...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question