mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
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:
parent
473691946b
commit
94c95262e2
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user