From df3a651aa8c011ba896909d1eca8b2c7678fafae Mon Sep 17 00:00:00 2001 From: Leonid Pliushch Date: Fri, 8 Oct 2021 14:01:11 +0300 Subject: [PATCH] github actions: package upload delays 10s and 10 retry attempts Also noticed that planned initial delay of 3s hasn't been implemented at all. --- .github/workflows/packages.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/packages.yml b/.github/workflows/packages.yml index e50861f6a..ab8cd35e3 100644 --- a/.github/workflows/packages.yml +++ b/.github/workflows/packages.yml @@ -223,7 +223,7 @@ jobs: # Retry up to 5 times. http_status_code="" - for _ in {1..5}; do + for _ in {1..10}; do curl_response=$( set +e curl \ @@ -236,7 +236,8 @@ jobs: http_status_code=$(echo "$curl_response" | cut -d'|' -f2) if [ "$http_status_code" = "000" ]; then - echo "[$(date +%H:%M:%S)] Warning: server/proxy has dropped connection, retrying (adding packages)..." + echo "[$(date +%H:%M:%S)] Warning: server/proxy has dropped connection, retrying in 10s (adding packages)..." + sleep 10 continue else break @@ -262,7 +263,7 @@ jobs: echo "[$(date +%H:%M:%S)] Publishing repository changes..." # Retry up to 5 times. http_status_code="" - for _ in {1..5}; do + for _ in {1..10}; do curl_response=$( set +e curl \ @@ -277,7 +278,8 @@ jobs: http_status_code=$(echo "$curl_response" | cut -d'|' -f2) if [ "$http_status_code" = "000" ]; then - echo "[$(date +%H:%M:%S)] Warning: server/proxy has dropped connection, retrying (publishing changes)..." + echo "[$(date +%H:%M:%S)] Warning: server/proxy has dropped connection, retrying in 10s (publishing changes)..." + sleep 10 continue else break