Add run lifecycle timestamps - improvments (#2601)
Co-authored-by: Shuchang Zheng <wintonzheng0325@gmail.com>
This commit is contained in:
committed by
GitHub
parent
90feb96b0f
commit
b5bf9d291f
@@ -44,6 +44,9 @@ async def get_run_response(run_id: str, organization_id: str | None = None) -> R
|
||||
status=str(task_v1_response.status),
|
||||
output=task_v1_response.extracted_information,
|
||||
failure_reason=task_v1_response.failure_reason,
|
||||
queued_at=task_v1_response.queued_at,
|
||||
started_at=task_v1_response.started_at,
|
||||
finished_at=task_v1_response.finished_at,
|
||||
created_at=task_v1_response.created_at,
|
||||
modified_at=task_v1_response.modified_at,
|
||||
app_url=f"{settings.SKYVERN_APP_URL.rstrip('/')}/tasks/{task_v1_response.task_id}",
|
||||
|
||||
@@ -1629,6 +1629,9 @@ async def build_task_v2_run_response(task_v2: TaskV2) -> TaskRunResponse:
|
||||
status=task_v2.status,
|
||||
output=task_v2.output,
|
||||
failure_reason=workflow_run_resp.failure_reason if workflow_run_resp else None,
|
||||
queued_at=task_v2.queued_at,
|
||||
started_at=task_v2.started_at,
|
||||
finished_at=task_v2.finished_at,
|
||||
created_at=task_v2.created_at,
|
||||
modified_at=task_v2.modified_at,
|
||||
recording_url=workflow_run_resp.recording_url if workflow_run_resp else None,
|
||||
|
||||
@@ -83,6 +83,9 @@ async def get_workflow_run_response(
|
||||
recording_url=workflow_run_resp.recording_url,
|
||||
screenshot_urls=workflow_run_resp.screenshot_urls,
|
||||
failure_reason=workflow_run_resp.failure_reason,
|
||||
queued_at=workflow_run.queued_at,
|
||||
started_at=workflow_run.started_at,
|
||||
finished_at=workflow_run.finished_at,
|
||||
app_url=app_url,
|
||||
created_at=workflow_run.created_at,
|
||||
modified_at=workflow_run.modified_at,
|
||||
|
||||
Reference in New Issue
Block a user