File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -2859,9 +2859,8 @@ func (ms *MutableStateImpl) ApplyWorkflowExecutionPausedEvent(event *historypb.H
28592859 // Invalidate pending workflow task by incrementing the persisted stamp.
28602860 // This ensures subsequent task dispatch detects the change.
28612861 if ms .HasPendingWorkflowTask () {
2862- workflowTask := ms .GetPendingWorkflowTask ()
2863- workflowTask .Stamp = workflowTask .Stamp + 1
2864- ms .workflowTaskManager .UpdateWorkflowTask (workflowTask )
2862+ ms .executionInfo .WorkflowTaskStamp += 1
2863+ ms .workflowTaskManager .UpdateWorkflowTask (ms .GetPendingWorkflowTask ())
28652864 }
28662865 return nil
28672866}
Original file line number Diff line number Diff line change @@ -1025,7 +1025,6 @@ func (m *workflowTaskStateMachine) UpdateWorkflowTask(
10251025 m .ms .executionInfo .WorkflowTaskHistorySizeBytes = workflowTask .HistorySizeBytes
10261026 m .ms .executionInfo .WorkflowTaskBuildId = workflowTask .BuildId
10271027 m .ms .executionInfo .WorkflowTaskBuildIdRedirectCounter = workflowTask .BuildIdRedirectCounter
1028- m .ms .executionInfo .WorkflowTaskStamp = workflowTask .Stamp
10291028
10301029 m .ms .workflowTaskUpdated = true
10311030
You can’t perform that action at this time.
0 commit comments