You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've noticed that PeriodicTask instances are not updated after app.conf.beat_schedule is updated. For example, this is my original app.conf.beat_schedule:
At the end, I had to delete the PeriodicTask instances from the database and restart the app to force it to create the new ones correctly.
However, it would be nice to have a mechanism to force a database refresh without having to delete the database (specially in the cases where not all PeriodicTask are saved in the beat_schedule. Also, it would solve the problem with the deleted tasks reported in #706
This is really basic functionality -- if the records in django_celery_beat_periodictask (the DB) don't match what's in beat_schedule (application code), this library is broken
Summary:
Good day,
I've noticed that PeriodicTask instances are not updated after app.conf.beat_schedule is updated. For example, this is my original app.conf.beat_schedule:
It creates a
PeriodicTask
with this crontab:0 6 25 * * (m/h/dM/MY/d)
.Then, after some changes in my code, I update the
beat_schedule
toHowever, after this change, the
PeriodicTask
is still with this crontab:0 6 25 * * (m/h/dM/MY/d)
when it should be0 5 10 * * (m/h/dM/MY/d)
.How may I make sure that the database will be updated if I modified the
app.conf.beat_schedule
configuration?Thank you,
The text was updated successfully, but these errors were encountered: