340
// Apply workflow-specific routing logic
341
// Note: Passing false useRampingVersionForInitialTask because activity is never the initial task.
342
>
targetDeploymentVersion, targetDeploymentRevisionNumber := worker_versioning.FindTargetDeploymentVersionAndRevisionNumberForWorkflowID(
api.go
343
>
routingInfo.Current,
344
>
routingInfo.CurrentRevisionNumber,
345
>
routingInfo.Ramping,
346
>
routingInfo.RampPercentage,
347
>
routingInfo.RampingRevisionNumber,
348
>
workflowId,
349
>
false,
350
>
)
351
>
352
>
return targetDeploymentVersion, targetDeploymentRevisionNumber, nil
353
}
354