How to programmatically generate celerybeat entries with celery and Django

前端 未结 2 2004
傲寒
傲寒 2021-02-01 09:17

I am hoping to be able to programmatically generate celerybeat entries and resync celerybeat when entries are added. The docs here state

By default the

2条回答
  •  无人共我
    2021-02-01 09:30

    I think what you want to do is add PeriodicTasks to the database. Looks like the bottom section of https://github.com/ask/django-celery/blob/master/djcelery/admin.py is how they add in tasks in the admin -- you'll need to offer something similar on the front end.

提交回复
热议问题