pub struct WorkerRetryPolicy {
pub max_retries: usize,
pub initial_backoff: Duration,
pub max_backoff: Duration,
}Expand description
Bounded retry policy for worker poll acquisition and worker heartbeats.
Expected empty long polls and explicit Server capacity backpressure are
normal worker states. Capacity backpressure honors the advertised retry
delay without consuming this retry budget. Other transport failures,
retryable HTTP 408/429 responses, and server errors are retried with capped
exponential backoff. Authentication, protocol, codec, and handler failures
are never retried by the worker.
Explicit storage admission pauses also preserve the already-serialized worker
request without consuming this budget or rerunning its handler. The delay is
capped by max_backoff, and shutdown interrupts storage waits.
Fields§
§max_retries: usizeNumber of retries after the initial request fails.
initial_backoff: DurationDelay before the first retry.
max_backoff: DurationMaximum delay between retries.
Trait Implementations§
Source§impl Clone for WorkerRetryPolicy
impl Clone for WorkerRetryPolicy
Source§fn clone(&self) -> WorkerRetryPolicy
fn clone(&self) -> WorkerRetryPolicy
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more