Skip to content
Merged
Changes from 2 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
4 changes: 4 additions & 0 deletions service/matching/matching_engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -2859,6 +2859,10 @@ func (e *matchingEngineImpl) pollTask(
// returned to the handler before a context timeout error is generated.
workerInstanceKey := pollMetadata.workerInstanceKey
if workerInstanceKey != "" && e.shutdownWorkers.Get(workerInstanceKey) != nil {
e.logger.Info("Rejecting poll from recently-shutdown worker",
tag.WorkflowTaskQueueName(partition.TaskQueue().Name()),
tag.NewStringTag("worker-instance-key", workerInstanceKey),
)
return nil, false, errNoTasks
}

Expand Down
Loading