Answer the question
In order to leave comments, you need to log in
How to stop a Celery task from running?
There is such a task,
it should be repeated until the config.IS_WORK variable changes
@app.task(bind=True)
def test(self):
if config.IS_WORK:
self.retry(countdown=3)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question