MCPcopy Index your code
hub / github.com/diffgram/diffgram / task_manager

Function task_manager

walrus/methods/input/input_update.py:75–89  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

73
74def report_input_forever():
75 def task_manager():
76 minutes = 180
77 check_interval_seconds = 60 * minutes
78
79 while True:
80 print("[input report monitor] heartbeat")
81 with sessionMaker.session_scope() as session:
82 update_input = Update_Input(
83 session = session
84 )
85
86 update_input.report_input_list_recent(
87 include_within_x_minutes = minutes)
88
89 time.sleep(check_interval_seconds)
90
91 t = threading.Timer(0, task_manager)
92 t.daemon = True

Callers

nothing calls this directly

Calls 2

Update_InputClass · 0.85

Tested by

no test coverage detected