Skip to main content

Module retry

Module retry 

Source
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§

RetryConfig
Configures retry behavior for a specific failure domain.

Enums§

JitterKind
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 true if the env var SQLITE_GRAPHRAG_DISABLE_RETRY is set to 1.