Skip to content

Commit d7ddbb7

Browse files
committed
External payload size and count for DescribeWorkflowExecution
1 parent 7acda96 commit d7ddbb7

File tree

4 files changed

+42
-0
lines changed

4 files changed

+42
-0
lines changed

openapi/openapiv2.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17001,6 +17001,16 @@
1700117001
"priority": {
1700217002
"$ref": "#/definitions/v1Priority",
1700317003
"title": "Priority metadata"
17004+
},
17005+
"externalPayloadSizeBytes": {
17006+
"type": "string",
17007+
"format": "int64",
17008+
"description": "Total size in bytes of all external payloads referenced in workflow history."
17009+
},
17010+
"externalPayloadCount": {
17011+
"type": "string",
17012+
"format": "int64",
17013+
"description": "Count of external payloads referenced in workflow history."
1700417014
}
1700517015
},
1700617016
"description": "Hold basic information about a workflow execution.\nThis structure is a part of visibility, and thus contain a limited subset of information."
@@ -17842,6 +17852,16 @@
1784217852
"type": "string",
1784317853
"format": "int64",
1784417854
"title": "Used by server internally to properly reapply build ID redirects to an execution\nwhen rebuilding it from events.\nDeprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]"
17855+
},
17856+
"externalPayloadSizeBytes": {
17857+
"type": "string",
17858+
"format": "int64",
17859+
"description": "Total size in bytes of all external payloads referenced in workflow history."
17860+
},
17861+
"externalPayloadCount": {
17862+
"type": "string",
17863+
"format": "int64",
17864+
"description": "Count of external payloads referenced in workflow history."
1784517865
}
1784617866
}
1784717867
},

openapi/openapiv3.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14474,6 +14474,12 @@ components:
1447414474
allOf:
1447514475
- $ref: '#/components/schemas/Priority'
1447614476
description: Priority metadata
14477+
externalPayloadSizeBytes:
14478+
type: string
14479+
description: Total size in bytes of all external payloads referenced in workflow history.
14480+
externalPayloadCount:
14481+
type: string
14482+
description: Count of external payloads referenced in workflow history.
1447714483
description: |-
1447814484
Hold basic information about a workflow execution.
1447914485
This structure is a part of visibility, and thus contain a limited subset of information.
@@ -15420,6 +15426,12 @@ components:
1542015426
Used by server internally to properly reapply build ID redirects to an execution
1542115427
when rebuilding it from events.
1542215428
Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
15429+
externalPayloadSizeBytes:
15430+
type: string
15431+
description: Total size in bytes of all external payloads referenced in workflow history.
15432+
externalPayloadCount:
15433+
type: string
15434+
description: Count of external payloads referenced in workflow history.
1542315435
WorkflowTaskTimedOutEventAttributes:
1542415436
type: object
1542515437
properties:

temporal/api/history/v1/message.proto

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,10 @@ message WorkflowTaskStartedEventAttributes {
284284
// when rebuilding it from events.
285285
// Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
286286
int64 build_id_redirect_counter = 7 [deprecated = true];
287+
// Total size in bytes of all external payloads referenced in workflow history.
288+
int64 external_payload_size_bytes = 8;
289+
// Count of external payloads referenced in workflow history.
290+
int64 external_payload_count = 9;
287291
}
288292

289293
message WorkflowTaskCompletedEventAttributes {

temporal/api/workflow/v1/message.proto

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,12 @@ message WorkflowExecutionInfo {
9898

9999
// Priority metadata
100100
temporal.api.common.v1.Priority priority = 24;
101+
102+
// Total size in bytes of all external payloads referenced in workflow history.
103+
int64 external_payload_size_bytes = 25;
104+
105+
// Count of external payloads referenced in workflow history.
106+
int64 external_payload_count = 26;
101107
}
102108

103109
// Holds all the extra information about workflow execution that is not part of Visibility.

0 commit comments

Comments
 (0)