
Description
Summary
When upgrading to 2.8.1
we've had a unit test fail for our custom Scheduler class, due to celery.backend_cleanup
missing from the scheduler's schedule.
Detailed Information
It appears this is intended to be included, as it is explicitly added to the hours_to_include
:
django-celery-beat/django_celery_beat/schedulers.py
Lines 311 to 315 in 2a20e5a
Yet the default schedule in DatabaseScheduler.install_default_entries()
does not specify a timezone for celery.backend_cleanup
, so the crontab will default to CELERY_TIMEZONE
:
django-celery-beat/django_celery_beat/models.py
Lines 64 to 76 in 2a20e5a
This then may be excluded, as the server_hour
for the cleanup task may not be within the hours_to_include
:
django-celery-beat/django_celery_beat/schedulers.py
Lines 331 to 347 in 2a20e5a
e.g.
Expected hour: 4
sever_hour
in Australia/Melbourne: 17
All tasks appear to still be running fine, but just wanted to point this out as it seems unintentional.