Skip to content

Commit

Permalink
more and less often retry requests on data download
Browse files Browse the repository at this point in the history
the remote URLs for the images sometimes return failed connections, ensure we retry these failures but spread these retries out
  • Loading branch information
camallen committed Mar 30, 2023
1 parent a66e80d commit 5b390c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion azure/batch/scripts/predict_on_catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

# add retries on requests if we have flaky networks
# https://www.peterbe.com/plog/best-practice-with-retries-with-requests
def requests_retry_session(retries=3, backoff_factor=0.3):
def requests_retry_session(retries=4, backoff_factor=0.8):
session = requests.Session()
retry = Retry(
total=retries,
Expand Down

0 comments on commit 5b390c6

Please sign in to comment.