From 4fcf165cb3f290bb864597b2ba23a67eac5de0db Mon Sep 17 00:00:00 2001 From: John DiSanti Date: Wed, 1 Feb 2023 17:49:28 -0800 Subject: [PATCH] Increase build image backoff time and attempts (#2267) --- .github/scripts/acquire-build-image | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/scripts/acquire-build-image b/.github/scripts/acquire-build-image index a20709a2e9..772e3a3aab 100755 --- a/.github/scripts/acquire-build-image +++ b/.github/scripts/acquire-build-image @@ -135,10 +135,10 @@ class Shell: # Pulls a Docker image and retries if it gets throttled -def docker_pull_with_retry(shell, image_name, image_tag, throttle_sleep_time=45, retryable_error_sleep_time=1): +def docker_pull_with_retry(shell, image_name, image_tag, throttle_sleep_time=120, retryable_error_sleep_time=1): if shell.platform() == Platform.ARM_64: return DockerPullResult.REMOTE_ARCHITECTURE_MISMATCH - for attempt in range(1, 5): + for attempt in range(1, 6): announce(f"Attempting to pull remote image {image_name}:{image_tag} (attempt {attempt})...") result = shell.docker_pull(image_name, image_tag) if result == DockerPullResult.ERROR_THROTTLED: