API + SDK support - get workflow run (#2324)

This commit is contained in:
Shuchang Zheng
2025-05-11 16:24:31 -07:00
committed by GitHub
parent 2c58e99b55
commit 8f37625f51
4 changed files with 44 additions and 14 deletions

View File

@@ -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}",
)

View File

@@ -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)