Skip to content

Commit

Permalink
不必要にリトライしないように変更しました。 (#446)
Browse files Browse the repository at this point in the history
* requests InvalidJsonErrorはリトライしないようにした

* poetry update
  • Loading branch information
yuji38kwmt committed Apr 20, 2022
1 parent adb58a6 commit 552e1e2
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 64 deletions.
2 changes: 1 addition & 1 deletion annofabapi/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def fatal_code(e):

return backoff.on_exception(
backoff.expo,
(requests.exceptions.RequestException, ConnectionError),
(requests.exceptions.HTTPError, requests.exceptions.ConnectionError, ConnectionError),
jitter=backoff.full_jitter,
max_time=300,
giveup=fatal_code,
Expand Down
126 changes: 63 additions & 63 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 552e1e2

Please sign in to comment.