Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Celery config to use UTC time #2080

Merged
merged 9 commits into from
Jan 22, 2024
1 change: 1 addition & 0 deletions app/celery/celery.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ def init_app(self, app):
"beat_schedule": app.config["CELERYBEAT_SCHEDULE"],
"imports": app.config["CELERY_IMPORTS"],
"task_serializer": app.config["CELERY_TASK_SERIALIZER"],
"enable_utc": app.config["CELERY_ENABLE_UTC"],
"timezone": app.config["CELERY_TIMEZONE"],
"broker_transport_options": app.config["BROKER_TRANSPORT_OPTIONS"],
"task_queues": app.config["CELERY_QUEUES"],
Expand Down
2 changes: 1 addition & 1 deletion app/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ class Config(object):
"queue_name_prefix": NOTIFICATION_QUEUE_PREFIX,
}
CELERY_ENABLE_UTC = True
CELERY_TIMEZONE = os.getenv("TIMEZONE", "America/Toronto")
CELERY_TIMEZONE = os.getenv("TIMEZONE", "UTC")
CELERY_ACCEPT_CONTENT = ["json"]
CELERY_TASK_SERIALIZER = "json"
CELERY_IMPORTS = (
Expand Down
Loading