Skip to content

Commit

Permalink
UPDATE: increase max retries
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremiahUy committed Oct 12, 2020
1 parent 71db5a1 commit 05783be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
app = FastAPI()


@backoff.on_exception(backoff.expo, requests.exceptions.RequestException, max_tries=4)
@backoff.on_exception(backoff.expo, requests.exceptions.RequestException, max_tries=10)
def request_put(url, message):
res = requests.put(url, json.dumps(message).encode("utf-8"))
res.raise_for_status()
Expand Down

0 comments on commit 05783be

Please sign in to comment.