Skip to content

Commit b9d29cc

Browse files
Merge pull request #954 from roboflow/feat/handle-workflow-id-if-passed-with-specification
Handle optional workflow_id if passed as part of request to /workflows/run
2 parents d42c522 + e55f50c commit b9d29cc

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

inference/core/entities/requests/workflows.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ class WorkflowInferenceRequest(BaseModel):
2525
"allow profiling traces to be exported to clients. Only applies for Workflows definitions saved "
2626
"on Roboflow platform.",
2727
)
28+
workflow_id: Optional[str] = Field(
29+
default=None, description="Optional identifier of workflow"
30+
)
2831

2932

3033
class PredefinedWorkflowInferenceRequest(WorkflowInferenceRequest):

inference/core/interfaces/http/http_api.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -724,6 +724,7 @@ def process_workflow_inference_request(
724724
max_concurrent_steps=WORKFLOWS_MAX_CONCURRENT_STEPS,
725725
prevent_local_images_loading=True,
726726
profiler=profiler,
727+
workflow_id=workflow_request.workflow_id,
727728
)
728729
is_preview = False
729730
if hasattr(workflow_request, "is_preview"):

0 commit comments

Comments
 (0)