From 004ba1ea0cb4df708d54e6d735ab52cf73ce3325 Mon Sep 17 00:00:00 2001 From: Andrei Matveyeu Date: Fri, 18 Jul 2025 09:23:05 +0200 Subject: [PATCH] downloader.py: read retries 10 Change-Id: I1f29abec2154f0bcf025f4f282d7e0b0643d8b6b --- cli/src/etos_client/shared/downloader.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cli/src/etos_client/shared/downloader.py b/cli/src/etos_client/shared/downloader.py index 372ab59c..a40d8e56 100644 --- a/cli/src/etos_client/shared/downloader.py +++ b/cli/src/etos_client/shared/downloader.py @@ -33,11 +33,12 @@ from etos_lib.lib.http import Http +max_retries = 10 # With 1 as backoff_factor, the total wait time between retries will be 1023 seconds HTTP_RETRY_PARAMETERS = Retry( total=None, - read=0, - connect=10, # With 1 as backoff_factor, will retry for 1023s - status=10, # With 1 as backoff_factor, will retry for 1023s + read=max_retries, + connect=max_retries, + status=max_retries, backoff_factor=1, other=0, # 413, 429, 503 + 404 (for cases when the file is not uploaded immediately)