用add_periodic_task()设置芹菜击败任务优先级
我已经进行了广泛的搜索,但找不到任何东西。
当使用add_periodic_task()
之类的东西时,是否可以为芹菜节拍任务设置芹菜任务优先级
sender.add_periodic_task(
crontab(minute="*/5"),
self_monitor_health_checks,
priority=3,
)
。
I've searched extensively, but cannot find anything on this.
Is it possible to set a celery task priority for a celery beat task, when using add_periodic_task()
something like:
sender.add_periodic_task(
crontab(minute="*/5"),
self_monitor_health_checks,
priority=3,
)
Thanks for your help and input.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
事实证明,尽管没有证件,但上述确实有效。您可以设置这样的优先级:
It turns out that the above does work, despite it being undocumented. You can set a priority like this: