mirror of
https://github.com/tubearchivist/tubearchivist
synced 2024-11-02 09:41:07 +00:00
for some strange reason timezone needs to be defined here again...
This commit is contained in:
parent
0b0634273a
commit
3d0bb40da6
@ -34,6 +34,7 @@ os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings")
|
|||||||
app = Celery("tasks", broker=f"redis://{REDIS_HOST}:{REDIS_PORT}")
|
app = Celery("tasks", broker=f"redis://{REDIS_HOST}:{REDIS_PORT}")
|
||||||
app.config_from_object("django.conf:settings", namespace="ta:")
|
app.config_from_object("django.conf:settings", namespace="ta:")
|
||||||
app.autodiscover_tasks()
|
app.autodiscover_tasks()
|
||||||
|
app.conf.timezone = os.environ.get("TZ") or "UTC"
|
||||||
|
|
||||||
|
|
||||||
@shared_task(name="update_subscribed")
|
@shared_task(name="update_subscribed")
|
||||||
|
Loading…
Reference in New Issue
Block a user