Skip to content

Video Management API - Inference Pipeline cannot be terminated once initial connect request to camera failed #685

@PawelPeczek-Roboflow

Description

@PawelPeczek-Roboflow

Search before asking

  • I have searched the Inference issues and found no similar bug report.

Bug

When someone runs

from inference_sdk import InferenceHTTPClient

client = InferenceHTTPClient(
    api_url="http://XXX:9001",
    api_key="XXX"
)

client.start_inference_pipeline_with_workflow(
    video_reference=["INVALID"],
    workspace_name="XXX",
    workflow_id="XXX",
)

and the InferencePipeline cannot connect to source, for some cases one cannot run:

client.terminate_inference_pipeline("<PIPELINE-ID>")

as the video source is not in state letting for termination and will never be - we are getting StreamOperationNotAllowedError inside server

Environment

No response

Minimal Reproducible Example

No response

Additional

No response

Are you willing to submit a PR?

  • Yes I'd like to help by submitting a PR!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions