简体   繁体   中英

Config celery to start task again after it has been finished

How I can config celery to get one worker always run the same task. And after it ended starts it again on the same worker.

It looks like you will need to take two steps

  1. Create a separate queue for this task, route the task to the queue

2a. Create an infinite loop that calls your particular task, such as this answer

OR

2b. Have a recursive task that calls itself on completion (this could get messy)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM