L
L
Lexx Xell2020-05-10 15:31:39
Django
Lexx Xell, 2020-05-10 15:31:39

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

1 answer(s)
V
Vadim Shatalov, 2020-05-10
@LexxXell

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 question

Ask a Question

731 491 924 answers to any question