Skip to main content

plan_retry

Function plan_retry 

Source
pub fn plan_retry(input: &PlanRetryInput) -> KResult<RetryPlan>
Expand description

Decide whether the attempt that just failed is retried, and after what delay.

Stops for a non-retryable cause (schema_violation, user_cancel, nondeterminism_detected) or once attempt >= max_attempts; otherwise the delay is the policy’s backoff with jitter drawn from random. Errors with invalid_event when random is not 32 lowercase hex chars.