576
// We've made slightly more progress if we transitioned from backing off to scheduled.
577
return 1, c.GetAttempt()*2 + 1, nil
578
>
case enumspb.NEXUS_OPERATION_CANCELLATION_STATE_SUCCEEDED, enumspb.NEXUS_OPERATION_CANCELLATION_STATE_FAILED:
statemachine.go
579
>
// Consider any terminal state as "max progress", we'll rely on last update namespace failover version to break
580
>
// the tie when comparing two states.
581
>
return terminalStage, 0, nil
582
default:
583
return 0, 0, serviceerror.NewInvalidArgument("unknown cancelation state")