[Django]-Django Celery Timezone misconfiguration or bug

3👍

Seems this should be fixed in new release and as a temporary workaround branch 3.0 was suggested https://github.com/celery/django-celery/issues/183#issuecomment-10846821.

👤max

1👍

Also this problem can be appear if you (as me) get

TIME_ZONE = 'UTC'

...

CELERY_TIMEZONE = 'Europe/Moscow'

in Django settings.py. This 2 strings can be in different parts of this large settings.py config file and in this case Celery beat (for example) will show you message that timezone is changed. Something like that: Timezone changed from 'UTC' to 'Europe/Moscow' but real beat time that you will see will be still in UTC. To fix it, just set correct Django TIME_ZONE setting:

TIME_ZONE = 'Europe/Moscow'

and Celery will pick it up!

Cheers.

👤valex

0👍

At least according to the release notes, the timezone bug was fixed in .0.8 and .0.9.

Use celery 3.09 and django-celery 3.0.9

Leave a comment