1453
// this step is not needed in async mode because the task queues got full routing info (including removed ramp) through the previous version.
1454
!asyncMode {
1455
>
// If the new current is unversioned, and it was previously ramping, we need to tell
workflow.go
1456
>
// all the task queues with unversioned ramp that they no longer have unversioned ramp.
1457
>
// The task queues with unversioned ramp are the task queues of the previous current version.
1458
>
// TODO (Carly): Should we ban people from changing the task queues in the current version while they have an unversioned ramp?
1459
>
unsetRampUpdateArgs := &deploymentspb.SyncVersionStateUpdateArgs{
1460
>
RoutingUpdateTime: updateTime,
1461
>
RampingSinceTime: nil, // remove ramp
1462
>
RampPercentage: 0, // remove ramp
1463
>
}
1464
>
if err := d.syncUnversionedRamp(ctx, unsetRampUpdateArgs); err != nil {
1465
return nil, err
1466
}