Skip to content

Commit 58c7d62

Browse files
Add firstRunId to WorkflowExecutionInfo (#439)
Add firstRunId to WorkflowExecutionInfo --------- Co-authored-by: Yichao Yang <[email protected]>
1 parent eebb2c6 commit 58c7d62

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

Diff for: openapi/openapiv2.json

+4
Original file line numberDiff line numberDiff line change
@@ -11438,6 +11438,10 @@
1143811438
"inheritedBuildId": {
1143911439
"type": "string",
1144011440
"description": "Build ID inherited from a previous/parent execution. If present, assigned_build_id will be set to this, instead\nof using the assignment rules."
11441+
},
11442+
"firstRunId": {
11443+
"type": "string",
11444+
"title": "The first run ID in the execution chain.\nExecutions created via the following operations are considered to be in the same chain\n- ContinueAsNew\n- Workflow Retry\n- Workflow Reset\n- Cron Schedule"
1144111445
}
1144211446
}
1144311447
},

Diff for: openapi/openapiv3.yaml

+9
Original file line numberDiff line numberDiff line change
@@ -8904,6 +8904,15 @@ components:
89048904
description: |-
89058905
Build ID inherited from a previous/parent execution. If present, assigned_build_id will be set to this, instead
89068906
of using the assignment rules.
8907+
firstRunId:
8908+
type: string
8909+
description: |-
8910+
The first run ID in the execution chain.
8911+
Executions created via the following operations are considered to be in the same chain
8912+
- ContinueAsNew
8913+
- Workflow Retry
8914+
- Workflow Reset
8915+
- Cron Schedule
89078916
WorkflowExecutionSignaledEventAttributes:
89088917
type: object
89098918
properties:

Diff for: temporal/api/workflow/v1/message.proto

+7
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,13 @@ message WorkflowExecutionInfo {
9191
// Build ID inherited from a previous/parent execution. If present, assigned_build_id will be set to this, instead
9292
// of using the assignment rules.
9393
string inherited_build_id = 20;
94+
// The first run ID in the execution chain.
95+
// Executions created via the following operations are considered to be in the same chain
96+
// - ContinueAsNew
97+
// - Workflow Retry
98+
// - Workflow Reset
99+
// - Cron Schedule
100+
string first_run_id = 21;
94101
}
95102

96103
message WorkflowExecutionConfig {

0 commit comments

Comments
 (0)