Add run lifecycle timestamps - improvments (#2601)

Co-authored-by: Shuchang Zheng <wintonzheng0325@gmail.com>
This commit is contained in:
Prakash Maheshwaran
2025-06-11 23:36:49 -04:00
committed by GitHub
parent 90feb96b0f
commit b5bf9d291f
15 changed files with 138 additions and 1 deletions

View File

@@ -116,6 +116,9 @@ class WorkflowRun(BaseModel):
parent_workflow_run_id: str | None = None
workflow_title: str | None = None
queued_at: datetime | None = None
started_at: datetime | None = None
finished_at: datetime | None = None
created_at: datetime
modified_at: datetime
@@ -143,6 +146,9 @@ class WorkflowRunResponseBase(BaseModel):
webhook_callback_url: str | None = None
totp_verification_url: str | None = None
totp_identifier: str | None = None
queued_at: datetime | None = None
started_at: datetime | None = None
finished_at: datetime | None = None
created_at: datetime
modified_at: datetime
parameters: dict[str, Any]

View File

@@ -1125,6 +1125,9 @@ class WorkflowService:
webhook_callback_url=workflow_run.webhook_callback_url,
totp_verification_url=workflow_run.totp_verification_url,
totp_identifier=workflow_run.totp_identifier,
queued_at=workflow_run.queued_at,
started_at=workflow_run.started_at,
finished_at=workflow_run.finished_at,
created_at=workflow_run.created_at,
modified_at=workflow_run.modified_at,
parameters=parameters_with_value,