Expand description
Centralized retry infrastructure with exponential backoff and half-jitter. Centralized retry infrastructure with exponential backoff and half-jitter.
Provides RetryConfig with named constructors for each failure domain
(SQLite BUSY, LLM rate-limit, cold-start) and a compute_delay function
that applies the configured jitter strategy.
Structs§
- Circuit
Breaker - Counts consecutive hard failures and trips open after a threshold.
- Retry
Config - Configures retry behavior for a specific failure domain.
Enums§
- Attempt
Outcome - Outcome of a single retry attempt, used to feed a
CircuitBreaker. - Jitter
Kind - Jitter strategy for randomizing retry delays.
Functions§
- compute_
delay - Computes the delay for a given attempt using the config’s jitter strategy.
- is_
kill_ switch_ active - Returns
trueif the env varSQLITE_GRAPHRAG_DISABLE_RETRYis set to1.