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

后端 未结 1 1932
慢半拍i
慢半拍i 2021-02-19 06:58

When I run syncdb, I notice a lot of tables created like:

  • djcelery_crontabschedule
  • ...
  • djcelery_taskstate

django-kombu is providin

相关标签:
1条回答
  • 2021-02-19 07:38

    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.

    0 讨论(0)
提交回复
热议问题