Skip to content

Commit 760fa12

Browse files
authored
Add new_execution_run_id to some workflow completion events (#119)
1 parent ff5e03e commit 760fa12

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

temporal/api/history/v1/message.proto

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ message WorkflowExecutionStartedEventAttributes {
5757
google.protobuf.Duration workflow_run_timeout = 8 [(gogoproto.stdduration) = true];
5858
// Timeout of a single workflow task.
5959
google.protobuf.Duration workflow_task_timeout = 9 [(gogoproto.stdduration) = true];
60+
// Run id of previous ContinueAsNew or retry or cron execution.
6061
string continued_execution_run_id = 10;
6162
temporal.api.enums.v1.ContinueAsNewInitiator initiator = 11;
6263
temporal.api.failure.v1.Failure continued_failure = 12;
@@ -82,16 +83,22 @@ message WorkflowExecutionStartedEventAttributes {
8283
message WorkflowExecutionCompletedEventAttributes {
8384
temporal.api.common.v1.Payloads result = 1;
8485
int64 workflow_task_completed_event_id = 2;
86+
// If another run is started by cron, this contains the new run id.
87+
string new_execution_run_id = 3;
8588
}
8689

8790
message WorkflowExecutionFailedEventAttributes {
8891
temporal.api.failure.v1.Failure failure = 1;
8992
temporal.api.enums.v1.RetryState retry_state = 2;
9093
int64 workflow_task_completed_event_id = 3;
94+
// If another run is started by cron or retry, this contains the new run id.
95+
string new_execution_run_id = 4;
9196
}
9297

9398
message WorkflowExecutionTimedOutEventAttributes {
9499
temporal.api.enums.v1.RetryState retry_state = 1;
100+
// If another run is started by cron or retry, this contains the new run id.
101+
string new_execution_run_id = 2;
95102
}
96103

97104
message WorkflowExecutionContinuedAsNewEventAttributes {

0 commit comments

Comments
 (0)