From 3d1391ed4527735874b75c761c18c1060868eba0 Mon Sep 17 00:00:00 2001 From: Max Metz Date: Wed, 31 Jul 2024 08:28:44 +0200 Subject: [PATCH] included the Notifier in the routine. Will be executed every 15 minutes for notifications, which are at least 10 minutes old. --- src/server/BreCal/services/schedule_routines.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/server/BreCal/services/schedule_routines.py b/src/server/BreCal/services/schedule_routines.py index 2e0be3e..a1ada24 100644 --- a/src/server/BreCal/services/schedule_routines.py +++ b/src/server/BreCal/services/schedule_routines.py @@ -51,7 +51,7 @@ def add_function_to_schedule__update_shipcalls(interval_in_minutes:int, options: schedule.every(interval_in_minutes).minutes.do(UpdateShipcalls, **kwargs_) return -def add_function_to_schedule__send_notifications(vr, interval_in_minutes:int=10): +def add_function_to_schedule__send_notifications(interval_in_minutes:int=10): schedule.every(interval_in_minutes).minutes.do(Notifier.send_notifications) return @@ -65,8 +65,8 @@ def setup_schedule(update_shipcalls_interval_in_minutes:int=60): # update the evaluation state in every recent shipcall add_function_to_schedule__update_shipcalls(update_shipcalls_interval_in_minutes) - # placeholder: create/send notifications - # add_function_to_schedule__send_notifications(...) + # create/send notifications + add_function_to_schedule__send_notifications(10) return