Skip to content

Commit 532e3cf

Browse files
committed
Handle paused workflow status in MutableStateImpl.closeTransactionHandleWorkflowTaskScheduling()
1 parent 1dca6e3 commit 532e3cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

service/history/workflow/mutable_state_impl.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6909,7 +6909,7 @@ func (ms *MutableStateImpl) closeTransactionHandleWorkflowTaskScheduling(
69096909
return serviceerror.NewInternalf("no event definition registered for %v", t)
69106910
}
69116911
if def.IsWorkflowTaskTrigger() {
6912-
if !ms.HasPendingWorkflowTask() {
6912+
if !ms.HasPendingWorkflowTask() && !ms.IsWorkflowExecutionStatusPaused() {
69136913
if _, err := ms.AddWorkflowTaskScheduledEvent(
69146914
false,
69156915
enumsspb.WORKFLOW_TASK_TYPE_NORMAL,

0 commit comments

Comments
 (0)