Skip to main content

is_retryable_error

Function is_retryable_error 

Source
fn is_retryable_error(err: &Error) -> bool
Expand description

Check if an error is a transient SQL Server error that should be retried.

Covers:

  • Deadlock victim (error 1205)
  • SQL Server Agent still starting (error 14258 inside 22836/22832) — the Agent is needed for CDC job creation and may not be ready even though the healthcheck (SELECT 1) already passes.
  • Database not yet available during startup (error 904)