Expand description
Retry helpers for target-side and server-side rotation steps.
Structsยง
- Retry
Cfg ๐ - Configuration for the retry helpers.
Enumsยง
- Gated
Outcome ๐ - The outcome of a
with_retries_gatedcall.
Functionsยง
- cap_
to_ ๐deadline - Truncate
delayso it does not push pastdeadline, orNoneonce the deadline has passed. - exponential_
delay ๐ base * 2^attemptfor a 0-indexed attempt, capped at 32x to avoid overflow.- retry_
loop ๐ - The shared retry loop: gate before each try, then
op, sleeping between transient failures. - with_
retries ๐ - Retry
opwith exponential backoff.Retry::Permanentreturns at once;Retry::Transientretries until the tries run out ordeadlinepasses, with sleeps truncated to it. - with_
retries_ ๐gated - Like
with_retries, but awaitsgate()before every try; an abort returnsGatedOutcome::Aborted. Session loss or lease expiry stops target-side steps between tries, never mid-call. Sleeps are not capped to a deadline: the gate checks execute_by before the next try.