I have a project that does not include Django, so i can't use djcelery.
But i found the modification of django-celery DatabaseSchedule that using sqlalchemy.
It works fine as like djceley's DatabaseScheule did. But the only problem is that it doesn't seem to send tasks that were added in runtime, then i restart the celery-beat, the tasks that were added before will be sent successfully.
So, is it possible to dynamically add/remove tasks without restarting celery-beat?
Thanks for any advice. And sorry for my bad english.
Sorry, it was my fault. The tasks that were added in runtime will not be picked up instantly, you can change the DatabaseScheduler.sync_every
value to a faster one. So it works after waiting for several minutes.
Thanks for tuomur's help.