开发者

Can I restart a FAILED celery task?

开发者 https://www.devze.com 2023-03-27 02:53 出处:网络
I am using celery with the djkombu queue. I\'ve set max_retries=3 for my task. Once the 3rd retry fails, it开发者_运维知识库 executes the after_return method with status=FAILURE. The method also rece

I am using celery with the djkombu queue.

I've set max_retries=3 for my task. Once the 3rd retry fails, it开发者_运维知识库 executes the after_return method with status=FAILURE. The method also receives a task_id parameter. With this task_id, can I restart the task manually (I think I will need to set the Message.visible to 1) ?


You need to re-launch the task with the same args you launched it before.

0

精彩评论

暂无评论...
验证码 换一张
取 消