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
1bdfa8997f
commit
3d1391ed45
@ -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_)
|
schedule.every(interval_in_minutes).minutes.do(UpdateShipcalls, **kwargs_)
|
||||||
return
|
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)
|
schedule.every(interval_in_minutes).minutes.do(Notifier.send_notifications)
|
||||||
return
|
return
|
||||||
|
|
||||||
@ -65,8 +65,8 @@ def setup_schedule(update_shipcalls_interval_in_minutes:int=60):
|
|||||||
# update the evaluation state in every recent shipcall
|
# update the evaluation state in every recent shipcall
|
||||||
add_function_to_schedule__update_shipcalls(update_shipcalls_interval_in_minutes)
|
add_function_to_schedule__update_shipcalls(update_shipcalls_interval_in_minutes)
|
||||||
|
|
||||||
# placeholder: create/send notifications
|
# create/send notifications
|
||||||
# add_function_to_schedule__send_notifications(...)
|
add_function_to_schedule__send_notifications(10)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user