Skip to content

Commit

Permalink
live/streamer: Give grace period on params update as well
Browse files Browse the repository at this point in the history
  • Loading branch information
victorges committed Dec 13, 2024
1 parent 0141b9d commit 1caba03
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion runner/app/live/streamer/streamer.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,8 @@ def _current_state(self) -> PipelineState:
return PipelineState.DEGRADED_INPUT

inference = self.status.inference_status
if not inference.last_output_time and current_time - self.status.start_time < 30:
pipeline_load_time = max(self.status.start_time, inference.last_params_update_time or 0)
if not inference.last_output_time and current_time - pipeline_load_time < 30:
# 30s grace period for the pipeline to start
return PipelineState.ONLINE

Expand Down

0 comments on commit 1caba03

Please sign in to comment.