Skip to main content

retry_delay

Function retry_delay 

Source
pub fn retry_delay(id: Uuid, attempts: i32) -> Duration
Expand description

Delay after the failed attempt number attempts (1-based): one minute, doubling per attempt, capped at MAX_RETRY, plus 0–25 % jitter derived from the delivery id (deterministic, so the schedule of one delivery is reproducible while many deliveries do not retry in lockstep).