add step count to webhooks and get run payload (#4410)
This commit is contained in:
@@ -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,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user