diff --git a/openapi/openapiv2.json b/openapi/openapiv2.json index 88462cb8..76161b7c 100644 --- a/openapi/openapiv2.json +++ b/openapi/openapiv2.json @@ -7844,6 +7844,10 @@ "mostRecentWorkerVersionStamp": { "$ref": "#/definitions/v1WorkerVersionStamp", "title": "If set, the most recent worker version stamp that appeared in a workflow task completion" + }, + "executionDuration": { + "type": "string", + "description": "Workflow execution duration is defined as difference between close time and execution time.\nThis field is only populated if the workflow is closed." } } }, diff --git a/openapi/openapiv3.yaml b/openapi/openapiv3.yaml index 0943bbe6..e50059b6 100644 --- a/openapi/openapiv3.yaml +++ b/openapi/openapiv3.yaml @@ -5760,6 +5760,12 @@ components: allOf: - $ref: '#/components/schemas/WorkerVersionStamp' description: If set, the most recent worker version stamp that appeared in a workflow task completion + executionDuration: + pattern: ^-?(?:0|[1-9][0-9]{0,11})(?:\.[0-9]{1,9})?s$ + type: string + description: |- + Workflow execution duration is defined as difference between close time and execution time. + This field is only populated if the workflow is closed. WorkflowExecutionSignaledEventAttributes: type: object properties: diff --git a/temporal/api/workflow/v1/message.proto b/temporal/api/workflow/v1/message.proto index 4c5e98d6..10c1bc74 100644 --- a/temporal/api/workflow/v1/message.proto +++ b/temporal/api/workflow/v1/message.proto @@ -58,6 +58,9 @@ message WorkflowExecutionInfo { int64 history_size_bytes = 15; // If set, the most recent worker version stamp that appeared in a workflow task completion temporal.api.common.v1.WorkerVersionStamp most_recent_worker_version_stamp = 16; + // Workflow execution duration is defined as difference between close time and execution time. + // This field is only populated if the workflow is closed. + google.protobuf.Duration execution_duration = 17; } message WorkflowExecutionConfig {