Commit 32078c48 authored by José Henrique's avatar José Henrique
Browse files

Increase retry timeout

parent 0eb4bee6
......@@ -150,9 +150,11 @@ def get_artifact_info(device, build):
break
except AssertionError:
print("Failed, server returned: " +
str(status_code) + ", trying again...")
str(status_code) + ", trying again in 60 seconds...")
if i == 5:
sys.exit(1)
pass
time.sleep(5)
time.sleep(60)
return False
......@@ -169,8 +171,8 @@ def download_artifact(device, build, destination_path):
print("Trying to download artifact (attempt " + str(i) + " of 5)")
if run_command(cmd) == 0:
return True
print("Download failed, trying again...")
time.sleep(5)
print("Download failed, trying again in 60 seconds...")
time.sleep(60)
sys.exit(
"Failed to download artifact, process returned code " +
str(result))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment