Skip to main content

Module retry

Module retry 

Source
Expand description

Retry helpers for transient database operations.

Three levels exist, from preferred to most specific:

Every retryability decision derives from crate::database_error_kind and driver-native error codes; error message text is never inspected. Non-retryable errors return immediately so application bugs are not hidden behind sleep loops.

Structs§

RetryConfig
Retry configuration for async database operations.

Functions§

is_retryable_sea_orm_error
Returns whether a SeaORM error represents a transient database failure.
with_retry
Execute an async operation with exponential backoff retry
with_sea_orm_retry
Executes a SeaORM operation with shared transient-error classification and backoff.
with_sea_orm_retry_timeout
Executes a SeaORM operation with retry and a timeout applied to every attempt.