adding the Notifier to schedule routines with an execution routine of 15 minutes. Notifications must be at least 10 minutes old and still relevant to be sent.

This commit is contained in:
Max Metz 2024-07-31 08:35:40 +02:00
parent 3d1391ed45
commit 40393fd476

View File

@ -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(interval_in_minutes:int=10):
def add_function_to_schedule__send_notifications(interval_in_minutes:int=15):
schedule.every(interval_in_minutes).minutes.do(Notifier.send_notifications)
return
@ -66,7 +66,7 @@ def setup_schedule(update_shipcalls_interval_in_minutes:int=60):
add_function_to_schedule__update_shipcalls(update_shipcalls_interval_in_minutes)
# create/send notifications
add_function_to_schedule__send_notifications(10)
add_function_to_schedule__send_notifications(15)
return