Bug 1593230 - Retry uploading symbols on 429 too. r=tomprince

Differential Revision: https://phabricator.services.mozilla.com/D53715

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Marco Castelluccio 2019-11-19 19:14:03 +00:00
parent 473691946b
commit 94c95262e2

View File

@ -113,9 +113,9 @@ def main():
# in front of symbols.mozilla.org has a 300 second timeout, so we'll use that.
timeout=(10, 300),
**zip_arg)
# 500 is likely to be a transient failure.
# 429 or any 5XX is likely to be a transient failure.
# Break out for success or other error codes.
if r.status_code < 500:
if r.ok or (r.status_code < 500 and r.status_code != 429):
break
print_error(r)
except requests.exceptions.RequestException as e: