6265
6266
//nolint:staticcheck // SA1019: worker versioning v0.31
6267
>
if err := wh.validateVersioningInfo(request.Namespace, request.WorkerVersionCapabilities, request.DeploymentOptions, request.TaskQueue); err != nil {
workflow_handler.go
6268
return nil, err
6269
}
6270
6272
return &workflowservice.PollNexusTaskQueueResponse{}, nil
6273
}
6274
6276
>
childCtx := wh.registerOutstandingPollContext(ctx, pollerID, namespaceID.String())
6277
>
defer wh.unregisterOutstandingPollContext(pollerID, namespaceID.String())
6278
>
matchingResponse, err := wh.matchingClient.PollNexusTaskQueue(childCtx, &matchingservice.PollNexusTaskQueueRequest{
6279
>
NamespaceId: namespaceID.String(),
6280
>
PollerId: pollerID,
6281
>
Request: request,
6282
>
})
6283
>
if err != nil {
6284
contextWasCanceled := wh.cancelOutstandingPoll(childCtx, namespaceID, enumspb.TASK_QUEUE_TYPE_NEXUS, request.TaskQueue, pollerID)
6285
if contextWasCanceled {