Skip to main content

decide_retry_transition

Function decide_retry_transition 

Source
pub fn decide_retry_transition(
    input: &RetryDecisionInput,
) -> Result<RetryDecision, RetryDecisionError>
Expand description

Computes retry transition intent from attempt outcome and counters.

ยงInvariants

  • max_attempts must be at least 1.
  • attempt_number must be at least 1.
  • attempt_number must not exceed max_attempts (except for Suspended outcomes, which bypass cap validation and always return Suspend).
  • Retryable outcomes only produce Retry when attempt_number < max_attempts.