2
0
Fork 0

read propper env vars for scheduled tasks

This commit is contained in:
Andreas (@xAndy) Zimmermann 2022-04-27 22:36:47 +02:00
parent 9cb6a6acdd
commit 0863b8c45a
1 changed files with 2 additions and 2 deletions

View File

@ -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
},
}