pub struct RetryPolicyParameters {
pub base_delay_ms: u64,
pub max_delay_ms: u64,
pub max_attempts: u32,
pub per_class: Option<BTreeMap<ErrorClass, BackoffParameters>>,
}Expand description
The retry family’s parameters of an ExecutorPolicy.
The flat schedule is the default every class falls back to. per_class
(R0.10 wave 3) carries learned per-crate::durable::ErrorClass
overrides: a class with an entry decides by that schedule (its budget
narrowing the task’s declared budget, never widening it); a class
without one decides by the flat schedule. Absent from the wire when
None, so the floor’s serialized shape is unchanged from v1.
Fields§
§base_delay_ms: u64Base of the exponential backoff schedule, in milliseconds.
max_delay_ms: u64Cap of the backoff schedule, in milliseconds.
max_attempts: u32Attempt budget: the number of attempts counting the initial one.
0 means no retries at all — every retryable failure dead-letters.
per_class: Option<BTreeMap<ErrorClass, BackoffParameters>>Learned per-error-class schedules (R0.10 wave 3). None — every
pre-learning policy — means the flat schedule decides for all
classes, exactly the v1 behavior.
Implementations§
Source§impl RetryPolicyParameters
impl RetryPolicyParameters
Sourcepub fn flat(&self) -> BackoffParameters
pub fn flat(&self) -> BackoffParameters
The flat schedule as BackoffParameters.