1. 首页
  2. 编程语言
  3. Python
  4. celery redbeat实现动态任务调度实例代码

celery redbeat实现动态任务调度实例代码

上传者: 2023-02-01 09:23:38上传 ZIP文件 6.01KB 热度 14次
CeleryBeat与RedBeatScheduler有关如何在CeleryBeat上运行RedBeatScheduler的简短示例.这将需要两个终端窗口才能运行celery worker A cluster l info P eventlet celery beat A cluster l info然后在第三个窗口中python import cluster from redbeat import RedBeatSchedulerEntry as Entry e Entry thingo cluster.add task10args154app cluster.app e.save keye.key您应该在celery worker终端中看到cluste目录.gitignore requirements.txt init.py LICENSE README.rst celeryconf.py cluster.py add task.py
用户评论