Skip to main content

decide_retry

Function decide_retry 

Source
pub fn decide_retry(
    state: &RetryState,
    error_log: &str,
    config: &FailureConfig,
) -> RetryDecision
Expand description

Determine retry decision based on retry state and config.

§Arguments

  • state - Current retry state with attempt count
  • error_log - Error log to check for retryable patterns
  • config - Failure configuration

§Returns

  • RetryDecision::Retry(delay) if should retry
  • RetryDecision::PermanentFailure(reason) if should not retry