Celery - schedule periodic tasks starting at a specific time

前端 未结 2 476
悲哀的现实
悲哀的现实 2021-01-05 11:40

What is the best way to schedule a periodic task starting at specific datetime?

(I\'m not using cron for this considering I\'ve the need to schedule about a hundred

2条回答
  •  梦谈多话
    2021-01-05 12:23

    I've recently worked on a task that involved Celery, and I had to use it for asynchronous operation as well as scheduled tasks. Suffice to say I resorted back to the old crontab for the scheduled task, although it calls a python script that spawns a separate asynchronous task. This way I have less to maintain for the crontab (to make the Celery scheduler run there needs some further setup), but I am making full use of Celery's asynchronous capabilities.

提交回复
热议问题