6716
// call to matching to notify this poller is gone to prevent any tasks being dispatched to zombie pollers.
6717
// TODO: specify a reasonable timeout for CancelOutstandingPoll.
6719
>
rpc.CopyContextValues(context.TODO(), ctx),
6720
>
&matchingservice.CancelOutstandingPollRequest{
6721
>
NamespaceId: namespaceID.String(),
6722
>
TaskQueueType: taskQueueType,
6723
>
TaskQueue: taskQueue,
6724
>
PollerId: pollerID,
6725
>
},
6726
>
)
6727
>
// We can not do much if this call fails. Just log the error and move on.
6728
>
if err != nil {
6729
wh.logger.Warn("Failed to cancel outstanding poller.",
6730
tag.WorkflowTaskQueueName(taskQueue.GetName()), tag.Error(err))
6731
}
6732
6734
}
6735