From 23d7e808cd1680f55ddb4d745add7143352f5ac8 Mon Sep 17 00:00:00 2001 From: Marcos Prieto Date: Tue, 3 Sep 2024 15:43:27 +0200 Subject: [PATCH] Schedule fetching roster --- h_periodic/lms_beat.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/h_periodic/lms_beat.py b/h_periodic/lms_beat.py index dc65c95..90d241c 100644 --- a/h_periodic/lms_beat.py +++ b/h_periodic/lms_beat.py @@ -41,6 +41,10 @@ "schedule": timedelta(minutes=15), "kwargs": {"limit": 2, "backfill": 20}, }, + "schedule_fetching_rosters": { + "task": "lms.tasks.roster.schedule_fetching_rosters", + "schedule": crontab(hour=14, minute=5), + }, "delete_expired_task_done_rows": { "task": "lms.tasks.task_done.delete_expired_rows", "options": {"expires": 1800},