You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: internal/workflow/executor.go
+5-2Lines changed: 5 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -115,6 +115,9 @@ func (e *executor) ExecuteTask(ctx context.Context, t *task.Workflow) (*Executio
115
115
// Fail workflow with an error. Skip executing new events, but still go through the commands
116
116
e.workflowCompleted(nil, err)
117
117
skipNewEvents=true
118
+
119
+
// With an error occurred during replay, we need to ensure new events don't get duplicate sequence ids
120
+
e.lastSequenceID=t.LastSequenceID
118
121
} elseift.LastSequenceID!=e.lastSequenceID {
119
122
logger.Error("After replaying history, task still has newer history than current state", "task_sequence_id", t.LastSequenceID, "local_sequence_id", e.lastSequenceID)
120
123
@@ -494,12 +497,12 @@ func (e *executor) handleSignalReceived(event history.Event, a *history.SignalRe
0 commit comments