Skip to content

Commit

Permalink
Fix issue with idle pipelines status probing
Browse files Browse the repository at this point in the history
  • Loading branch information
PawelPeczek-Roboflow committed Nov 25, 2024
1 parent dc7eb65 commit df118ec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions inference/core/interfaces/stream_manager/manager_app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,9 @@ def check_process_health() -> None:
process.join()
del PROCESSES_TABLE[pipeline_id]
continue
if managed_pipeline.is_idle:
# skipping idle pipelines in status probing
continue
command = {
TYPE_KEY: CommandType.STATUS,
PIPELINE_ID_KEY: pipeline_id,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ def run(self) -> None:
if command is None:
break
request_id, payload = command
print(f"request_id={request_id}, payload={payload}", flush=True)
self._handle_command(request_id=request_id, payload=payload)

def _check_pipeline_timeout(self) -> None:
Expand Down Expand Up @@ -433,7 +432,8 @@ def _get_pipeline_status(self, request_id: str) -> None:
return self._handle_error(
request_id=request_id,
error_type=ErrorType.OPERATION_ERROR,
public_error_message="Cannot retrieve InferencePipeline status. Internal Error. Service misconfigured.",
public_error_message="Cannot retrieve InferencePipeline status. "
"Try again later - Inference Pipeline not initialised.",
)
try:
report = self._watchdog.get_report()
Expand Down

0 comments on commit df118ec

Please sign in to comment.