for some strange reason timezone needs to be defined here again...

This commit is contained in:
simon 2021-12-03 12:00:40 +07:00
parent 0b0634273a
commit 3d0bb40da6
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4

View File

@ -34,6 +34,7 @@ os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings")
app = Celery("tasks", broker=f"redis://{REDIS_HOST}:{REDIS_PORT}")
app.config_from_object("django.conf:settings", namespace="ta:")
app.autodiscover_tasks()
app.conf.timezone = os.environ.get("TZ") or "UTC"
@shared_task(name="update_subscribed")