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
The DatabaseScheduler picks up tasks from the beat schedule and creates or updates corresponding PeriodicTask entries on the scheduler's setup but doesn't drop the PeriodicTask entry if the beat schedule entry corresponding to that task is dropped
Celery Version: 5.2.3
Celery-Beat Version: 2.4.0
Exact steps to reproduce the issue:
Have a CELERYBEAT_SCHEDULE setup in your Django settings with a couple of tasks
Start the Celery Beat service with the scheduler as DatabaseScheduler. There will be PeriodicTask entries created in the DB, corresponding to the CELERYBEAT_SCHEDULE tasks
Stop the Celery Beat service and remove one or more tasks from the CELERYBEAT_SCHEDULE setting
Restart the Celery Beat service with the DatabaseScheduler scheduler. The PeriodicTask entries corresponding to the CELERYBEAT_SCHEDULE tasks still exist and remain enabled
At this line, we use the default beat_schedule and create/update PeriodicTask entries corresponding to the same but if there are any tasks dropped in the beat_schedule, the PeriodicTask entries corresponding to the same are not deleted/disabled accordingly
The text was updated successfully, but these errors were encountered:
Summary:
The
DatabaseScheduler
picks up tasks from the beat schedule and creates or updates correspondingPeriodicTask
entries on the scheduler's setup but doesn't drop thePeriodicTask
entry if the beat schedule entry corresponding to that task is dropped5.2.3
2.4.0
Exact steps to reproduce the issue:
CELERYBEAT_SCHEDULE
setup in your Django settings with a couple of tasksDatabaseScheduler
. There will bePeriodicTask
entries created in the DB, corresponding to theCELERYBEAT_SCHEDULE
tasksCELERYBEAT_SCHEDULE
settingDatabaseScheduler
scheduler. ThePeriodicTask
entries corresponding to theCELERYBEAT_SCHEDULE
tasks still exist and remain enabledDetailed information
django-celery-beat/django_celery_beat/schedulers.py
Line 320 in 1f1c363
beat_schedule
and create/updatePeriodicTask
entries corresponding to the same but if there are any tasks dropped in thebeat_schedule
, thePeriodicTask
entries corresponding to the same are not deleted/disabled accordinglyThe text was updated successfully, but these errors were encountered: