feat: add live sync retry backoff

This commit is contained in:
Eric Wendland 2026-07-05 22:57:52 +02:00
commit 2dce1f41cf
8 changed files with 225 additions and 31 deletions

View file

@ -1698,6 +1698,12 @@ pub struct SyncStreamStatus {
pub last_error: Option<String>,
pub last_imported: usize,
pub last_rejected: usize,
#[serde(default)]
pub consecutive_failures: u32,
#[serde(default)]
pub retry_after_ms: Option<i64>,
#[serde(default)]
pub retry_in_ms: Option<i64>,
pub next_action: String,
}
@ -2719,6 +2725,9 @@ mod tests {
last_error: None,
last_imported: 2,
last_rejected: 0,
consecutive_failures: 0,
retry_after_ms: None,
retry_in_ms: None,
next_action: "none".to_owned(),
}],
}],