2223
}
2224
2226
>
targetDeploymentQueue, taskDispatchRevisionNumber, err = pm.chooseTargetQueueByFlag(
2227
>
ctx, deployment, targetDeployment, targetDeploymentRevisionNumber, taskDirectiveRevisionNumber,
2228
>
)
2229
>
if err != nil {
2230
return nil, nil, nil, 0, nil, err
2231
}
2232
>
targetDeploymentVersion = worker_versioning.DeploymentVersionFromDeployment(targetDeploymentQueue.QueueKey().Version().Deployment())
task_queue_partition_manager.go
2233
>
2234
>
if forwardInfo == nil {
2235
>
// Task is not forwarded, so it can be spooled if sync match fails.
2236
>
// Unpinned tasks are spooled in default queue
2237
>
return dbq, targetDeploymentQueue, userDataChanged, taskDispatchRevisionNumber, targetDeploymentVersion, err
2238
>
} else {
2239
// Forwarded from child partition - only do sync match.
2240
return nil, targetDeploymentQueue, userDataChanged, taskDispatchRevisionNumber, targetDeploymentVersion, err