is there a way to Add, modify, remove celery.schedules at run time. I need something that reads a db table periodically to know list of schedules.
Document says one can use djcelery.schedulers.DatabaseScheduler
to achieve what I want, but not sure how to do it.
I read How to dynamically add / remove periodic tasks to Celery (celerybeat), still not clear
Thanks for help
When you set in your app settings:
celery beat
proces checks django PeriodicTask model to see what task should be executed.You can add / modify / remove those tasks by modifying it using django model:
You can also test various configuration of PeriodicTask using django admin panel:
http://localhost:8000/admin/djcelery/crontabschedule/add/
http://localhost:8000/admin/djcelery/periodictask/