627
[]enumspb.NexusOperationCancellationState{enumspb.NEXUS_OPERATION_CANCELLATION_STATE_SCHEDULED},
628
enumspb.NEXUS_OPERATION_CANCELLATION_STATE_BACKING_OFF,
629
>
func(c Cancelation, event EventCancelationAttemptFailed) (hsm.TransitionOutput, error) {
statemachine.go
630
>
c.recordAttempt(event.Time)
631
>
// Use 0 for elapsed time as we don't limit the retry by time (for now).
632
>
nextDelay := event.RetryPolicy.ComputeNextDelay(0, int(c.Attempt), nil)
633
>
nextAttemptScheduleTime := event.Time.Add(nextDelay)
634
>
c.NextAttemptScheduleTime = timestamppb.New(nextAttemptScheduleTime)
635
>
c.LastAttemptFailure = event.Failure
636
>
return c.output(event.Node)
637
>
},
638
)
639