Skip to content

Commit

Permalink
feat: add ConnectionError to list of backoff exceptions for auto-re…
Browse files Browse the repository at this point in the history
…try (#919)

added connection error to list of backoff exceptions

Co-authored-by: Josh Lloyd <[email protected]>
  • Loading branch information
jlloyd-widen and Josh Lloyd authored Aug 23, 2022
1 parent 7416042 commit 9dac11c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions singer_sdk/streams/rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ def request_decorator(self, func: Callable) -> Callable:
(
RetriableAPIError,
requests.exceptions.ReadTimeout,
requests.exceptions.ConnectionError,
),
max_tries=self.backoff_max_tries,
on_backoff=self.backoff_handler,
Expand Down

0 comments on commit 9dac11c

Please sign in to comment.