From 0863b8c45a4c116dda52afde6047f25dfca20933 Mon Sep 17 00:00:00 2001 From: "Andreas (@xAndy) Zimmermann" Date: Wed, 27 Apr 2022 22:36:47 +0200 Subject: [PATCH] read propper env vars for scheduled tasks --- shiftregister/settings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shiftregister/settings.py b/shiftregister/settings.py index b30b841..79b5c65 100644 --- a/shiftregister/settings.py +++ b/shiftregister/settings.py @@ -156,11 +156,11 @@ CELERY_BEAT_SCHEDULE = { }, "send-messages-every-120-seconds": { "task": "shiftregister.app.tasks.send_messages", - "schedule": float(getenv("SHIFT_IMPORT_INTERVAL", 120.0)), # seconds + "schedule": float(getenv("MESSAGE_SEND_INTERVAL", 120.0)), # seconds }, "send-reminders-every-300-seconds": { "task": "shiftregister.app.tasks.send_reminders", - "schedule": float(getenv("SHIFT_IMPORT_INTERVAL", 300.0)), # seconds + "schedule": float(getenv("REMINDER_SEND_INTERVAL", 300.0)), # seconds }, }