Skip to content

Commit 6635522

Browse files
committed
fix: timeouts
1 parent b627d7b commit 6635522

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

runner/app/live/infer.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def signal_handler(sig, _):
136136
parser.add_argument(
137137
"--input-timeout",
138138
type=int,
139-
default=60,
139+
default=10,
140140
help="Timeout in seconds to wait after input frames stop before shutting down. Set to 0 to disable.",
141141
)
142142
parser.add_argument(

runner/app/live/streamer/process_guardian.py

+2-6
Original file line numberDiff line numberDiff line change
@@ -236,13 +236,9 @@ async def _monitor_loop(self):
236236
time_since_reload = min(time_since_last_params, time_since_start)
237237

238238
gone_stale = (
239-
time_since_last_output > time_since_last_input
240-
and time_since_last_output > 60
241-
and time_since_reload > 240
239+
time_since_last_output > 10
240+
or time_since_last_input > 10
242241
)
243-
if time_since_last_input > 5 and not gone_stale:
244-
# nothing to do if we're not sending inputs
245-
continue
246242

247243
active_after_reload = time_since_last_output < (time_since_reload - 1)
248244
stopped_recently = (

0 commit comments

Comments
 (0)