add step count to webhooks and get run payload (#4410)

This commit is contained in:
Marc Kelechava
2026-01-07 11:41:57 -08:00
committed by GitHub
parent 3c896fad1c
commit 4401216346
9 changed files with 57 additions and 11 deletions

View File

@@ -113,6 +113,7 @@ async def get_workflow_run_response(
workflow_run_resp = await app.WORKFLOW_SERVICE.build_workflow_run_status_response_by_workflow_id(
workflow_run_id=workflow_run.workflow_run_id,
organization_id=organization_id,
include_step_count=True,
)
app_url = f"{settings.SKYVERN_APP_URL.rstrip('/')}/runs/{workflow_run.workflow_run_id}"
return WorkflowRunResponse(
@@ -145,4 +146,5 @@ async def get_workflow_run_response(
# TODO: add browser session id
),
errors=workflow_run_resp.errors,
step_count=workflow_run_resp.total_steps,
)