Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions service/history/api/respondworkflowtaskcompleted/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,12 @@ func (handler *WorkflowTaskCompletedHandler) Invoke(
}
}

if ms.GetDeploymentTransition() != nil {
// Do not return new wft to worker if the workflow is transitioning to a different deployment version.
// Let the task go through matching and get dispatched to the right worker
bypassTaskGeneration = false
}

var newWTErr error
// If we checked WT heartbeat timeout before and WT wasn't timed out,
// then OriginalScheduledTime needs to be carried over to the new WT.
Expand Down
Loading