Skip to content
Merged
Changes from 1 commit
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
7 changes: 7 additions & 0 deletions service/history/api/respondworkflowtaskcompleted/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,13 @@ func (handler *WorkflowTaskCompletedHandler) Invoke(
}
}
}
pollerDeployment := worker_versioning.DeploymentFromDeploymentVersion(worker_versioning.DeploymentVersionFromOptions(request.GetDeploymentOptions()))
wfDeployment := ms.GetEffectiveDeployment()
if !pollerDeployment.Equal(wfDeployment) {
// Do not return new wft to worker if it's version does not match wf's
// 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,
Expand Down
Loading