Celery scheduled tasks problems with Timezone

前端 未结 3 1649
一向
一向 2021-01-12 09:20

I\'m using celery in a server where server time is now BST, and suddenly my scheduled tasks are executing one hour before! Previously, serv

3条回答
  •  独厮守ぢ
    2021-01-12 09:58

    This was a bug in Celery 4 that I helped contribute the fix for in Celery 4.2 -- it is true that the work around was to set the project's timezone for celery to be UTC, however as of Celery 4.2 you can use whatever timezone you want again and celerybeat scheduling will work properly. More details in the original bug report/PR: https://github.com/celery/celery/pull/4324

提交回复
热议问题