更新时间:2023-01-25 15:39:59
简短的答案是您不能用芹菜拍子做这件事,因为芹菜拍子将触发任务开始而不是任务结束。如果绝对需要在上一个任务结束后三分钟执行此操作,建议您在两个 .apply_async 的调用c> a 和 b
并启动每个任务一次。
The short answer is that you can't do this with celery beat because celery beat will trigger off of task start and not at task end. If you absolutely need to do it three minutes after the previous task ends, you'd be advised to just adding a call to .apply_async
at the end of both a
and b
and kicking off each task once.