I read the document and searched, but cannot find a direct answer:
Is it possible to cancel an already running task? (as when starting a task, it takes some time, and halfway through it you need to cancel)
I found this from the celery FAQ
>>> result = add.apply_async(args=[2, 2], countdown=120) >>> result.revoke()
But I do not know if this will cancel the tasks in the queue or if it will kill the workflow of the worker. Thanks for any light you can throw off!
python django celery message-passing
dcoffey3296 Jan 19 '12 at 3:21 2012-01-19 03:21
source share