Skip to main content

with_sea_orm_retry_timeout

Function with_sea_orm_retry_timeout 

Source
pub async fn with_sea_orm_retry_timeout<F, Fut, T>(
    operation_name: &str,
    config: RetryConfig,
    attempt_timeout: Duration,
    operation: F,
) -> Result<T, DbErr>
where F: FnMut() -> Fut, Fut: Future<Output = Result<T, DbErr>>,
Expand description

Executes a SeaORM operation with retry and a timeout applied to every attempt.

Same classification and boundary rules as with_sea_orm_retry; a timed-out attempt is retried regardless of error classification because the operation produced no outcome. Only wrap work that stays safe when a timed-out attempt keeps running in the background.