Skip to content

Commit

Permalink
Treat 500 errors as recoverable
Browse files Browse the repository at this point in the history
  • Loading branch information
epwalsh committed Sep 7, 2022
1 parent 5df13b4 commit 0ac3259
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ use patch releases for compatibility fixes instead.

## Unreleased

### Fixed

- 500 errors from server treated as recoverable.

## [v1.7.3](https://github.com/allenai/beaker-py/releases/tag/v1.7.3) - 2022-09-06

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion beaker/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class Beaker:
"""

RECOVERABLE_SERVER_ERROR_CODES = (429, 502, 503, 504)
RECOVERABLE_SERVER_ERROR_CODES = (429, 500, 502, 503, 504)
MAX_RETRIES = 5
API_VERSION = "v3"

Expand Down

0 comments on commit 0ac3259

Please sign in to comment.