|
|
|
@ -154,6 +154,14 @@ CELERY_BEAT_SCHEDULE = {
|
|
|
|
|
"task": "shiftregister.importer.tasks.import_shifts",
|
|
|
|
|
"schedule": float(getenv("SHIFT_IMPORT_INTERVAL", 60.0)), # seconds
|
|
|
|
|
},
|
|
|
|
|
"send-messages-every-120-seconds": {
|
|
|
|
|
"task": "shiftregister.app.tasks.send_messages",
|
|
|
|
|
"schedule": float(getenv("SHIFT_IMPORT_INTERVAL", 120.0)), # seconds
|
|
|
|
|
},
|
|
|
|
|
"send-reminders-every-300-seconds": {
|
|
|
|
|
"task": "shiftregister.app.tasks.send_reminders",
|
|
|
|
|
"schedule": float(getenv("SHIFT_IMPORT_INTERVAL", 300.0)), # seconds
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
CELERY_BEAT_SCHEDULE_FILENAME = str(BASE_DIR / "storage" / "celerybeat-schedule")
|
|
|
|
|