Fix a bug with retries (#7494)

## Problem

## Summary of changes

By default, it's 5s retry.
This commit is contained in:
Anna Khanova
2024-04-24 15:13:18 +02:00
committed by GitHub
parent a60035b23a
commit 5dda371c2b
2 changed files with 15 additions and 4 deletions

View File

@@ -403,7 +403,7 @@ async fn main() -> anyhow::Result<()> {
maintenance_tasks.spawn(usage_metrics::task_main(metrics_config));
client_tasks.spawn(usage_metrics::task_backup(
&metrics_config.backup_metric_collection_config,
cancellation_token,
cancellation_token.clone(),
));
}
@@ -423,7 +423,10 @@ async fn main() -> anyhow::Result<()> {
let cache = api.caches.endpoints_cache.clone();
let con = regional_redis_client;
let span = tracing::info_span!("endpoints_cache");
maintenance_tasks.spawn(async move { cache.do_read(con).await }.instrument(span));
maintenance_tasks.spawn(
async move { cache.do_read(con, cancellation_token.clone()).await }
.instrument(span),
);
}
}
}