@@ -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 {
8283message 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
8790message 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
9398message 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
97104message WorkflowExecutionContinuedAsNewEventAttributes {
0 commit comments