What are the django-celery (djcelery) tables for?

隐身守侯 提交于 2019-12-04 01:35:54
Mauro Rocco

The celery task_state table, populated by the daemon celerycam, is just for monitoring purposes.

The other tables, like "crontabschedule" "intervals" etc. are for scheduling periodic tasks by using the django backend db. These tables are used when you launch celery in beat mode (-B) and when you have this var set in the settings

CELERYBEAT_SCHEDULER = "djcelery.schedulers.DatabaseScheduler"

In this way you tell celery to use the django db for schedule tasks.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!