Skip to content

Commit

Permalink
Add execution duration to WorkflowExecutionInfo (#386)
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigozhou authored Apr 8, 2024
1 parent d9a85a3 commit f99af15
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions openapi/openapiv2.json
Original file line number Diff line number Diff line change
Expand Up @@ -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."
}
}
},
Expand Down
6 changes: 6 additions & 0 deletions openapi/openapiv3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 3 additions & 0 deletions temporal/api/workflow/v1/message.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit f99af15

Please sign in to comment.