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
I find it strange that if we set the celery_time zone, It will adjust the eta time by add the local time to utc. but, the celery eta clock seems to trigger by utc time. now the utc time is the time+celery timezone which is wrong.
I guess the @bgschiller using the utc as default time zone is a way to solve this..
def celery_localtime_util(t):
bj_tz = pytz.timezone('*')
bj_dt = bj_tz.localize(t)
return bj_dt.astimezone(pytz.UTC)
use this works...