Skip to content

Commit

Permalink
Add firstRunId to WorkflowExecutionInfo (#439)
Browse files Browse the repository at this point in the history
Add firstRunId to WorkflowExecutionInfo

---------

Co-authored-by: Yichao Yang <[email protected]>
  • Loading branch information
longquanzheng and yycptt authored Aug 8, 2024
1 parent eebb2c6 commit 58c7d62
Show file tree
Hide file tree
Showing 3 changed files with 20 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 @@ -11438,6 +11438,10 @@
"inheritedBuildId": {
"type": "string",
"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."
},
"firstRunId": {
"type": "string",
"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"
}
}
},
Expand Down
9 changes: 9 additions & 0 deletions openapi/openapiv3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8904,6 +8904,15 @@ components:
description: |-
Build ID inherited from a previous/parent execution. If present, assigned_build_id will be set to this, instead
of using the assignment rules.
firstRunId:
type: string
description: |-
The first run ID in the execution chain.
Executions created via the following operations are considered to be in the same chain
- ContinueAsNew
- Workflow Retry
- Workflow Reset
- Cron Schedule
WorkflowExecutionSignaledEventAttributes:
type: object
properties:
Expand Down
7 changes: 7 additions & 0 deletions temporal/api/workflow/v1/message.proto
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,13 @@ message WorkflowExecutionInfo {
// Build ID inherited from a previous/parent execution. If present, assigned_build_id will be set to this, instead
// of using the assignment rules.
string inherited_build_id = 20;
// The first run ID in the execution chain.
// Executions created via the following operations are considered to be in the same chain
// - ContinueAsNew
// - Workflow Retry
// - Workflow Reset
// - Cron Schedule
string first_run_id = 21;
}

message WorkflowExecutionConfig {
Expand Down

0 comments on commit 58c7d62

Please sign in to comment.