Skip to content

Commit

Permalink
fix(propdefs): make retries a little less aggressive (#25289)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverb123 authored Sep 30, 2024
1 parent 9fca67a commit 6448c6e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rust/property-defs-rs/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
// if we still fail, we drop the batch and clear it's content from the cached update set, because
// we assume everything in it will be seen again.
while let Err(e) = m_context.issue(&mut batch, cache_utilization).await {
error!("Issue failed: {:?}", e);
error!("Issue failed: {:?}, sleeping for 100ms", e);
tries += 1;
if tries > 3 {
metrics::counter!(ISSUE_FAILED).increment(1);
Expand All @@ -256,6 +256,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
issue_time.label("outcome", "failed").fin();
return;
}
tokio::time::sleep(Duration::from_millis(100)).await;
}

issue_time.label("outcome", "success").fin();
Expand Down

0 comments on commit 6448c6e

Please sign in to comment.