included the Notifier in the routine. Will be executed every 15 minutes for notifications, which are at least 10 minutes old.
This commit is contained in:
parent
8cd6afbb69
commit
4b7a098286
@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user