API + SDK support - get workflow run (#2324)
This commit is contained in:
@@ -1683,6 +1683,7 @@ async def run_workflow(
|
||||
run_request=workflow_run_request,
|
||||
downloaded_files=None,
|
||||
recording_url=None,
|
||||
app_url=f"{settings.SKYVERN_APP_URL.rstrip('/')}/{workflow_run.workflow_permanent_id}/{workflow_run.workflow_run_id}",
|
||||
)
|
||||
|
||||
|
||||
|
||||
@@ -969,7 +969,7 @@ class WorkflowService:
|
||||
async def build_workflow_run_status_response_by_workflow_id(
|
||||
self,
|
||||
workflow_run_id: str,
|
||||
organization_id: str,
|
||||
organization_id: str | None = None,
|
||||
include_cost: bool = False,
|
||||
) -> WorkflowRunResponseBase:
|
||||
workflow_run = await self.get_workflow_run(workflow_run_id=workflow_run_id, organization_id=organization_id)
|
||||
@@ -988,7 +988,7 @@ class WorkflowService:
|
||||
self,
|
||||
workflow_permanent_id: str,
|
||||
workflow_run_id: str,
|
||||
organization_id: str,
|
||||
organization_id: str | None = None,
|
||||
include_cost: bool = False,
|
||||
) -> WorkflowRunResponseBase:
|
||||
workflow = await self.get_workflow_by_permanent_id(workflow_permanent_id)
|
||||
|
||||
Reference in New Issue
Block a user