Celery: "Daily Drift from"

I have a problem with celery on my distributed system. I have several machines from different localizations, and I have many warnings in my log files, for example:

"Significant drift from celery @ host [...]"

I managed to set a date to return the same values ​​(even if the machines are in different countries), but python print (utcoffset ()) returns different results on the main server and nodes.

How to fix this problem? I could not find any good solution, except that utcoffset () should return the same value - but how?

Thanks for the help.

+4
source share
2 answers

:

[W 161208 08:42:00 state:74] Substantial drift from celery@host.com may mean clocks are out of sync.  Current drift is 10800 seconds.  [orig: 2016-12-08 08:42:00.722560 recv: 2016-12-08 05:42:00.719938]

:

celery==3.1.23 (and 3.1.25)
flower==0.9.1
rabbitmq 3.5.6

:

CELERY_TIMEZONE='US/Pacific'
TIME_ZONE = 'US/Pacific'
USE_TZ = True

stackoverflow git, , > 3.1.23

bash EST . , django "US/Pacific" (PST). 3 10800 .

bash PST, django, :

export TZ="US/Pacific"
+2

CELERY_ENABLE_UTC utcoffset(), .

issue # 1112? , Celery 3.1.

0

All Articles