feat: add live sync retry backoff
This commit is contained in:
parent
24a0a3d153
commit
2dce1f41cf
8 changed files with 225 additions and 31 deletions
|
|
@ -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(),
|
||||
}],
|
||||
}],
|
||||
|
|
|
|||
Loading…
Reference in a new issue