-
Notifications
You must be signed in to change notification settings - Fork 389
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEATURE] Add retries to the internal
httpx.Client
used by the SDK (#…
…5386) # Description This PR adds a new argument `retries` that can be used to specify the number of times that an HTTP request performed by the internal `httpx.Client` used by the SDK should be retried before raising an exception. This is useful as sometimes while using the `dataset.records.log` you can receive a `ConnectionError` or 5xx from the server and if you retry a few seconds later everything is fine. **Type of change** - Improvement **How Has This Been Tested** <!-- Please add some reference about how your feature has been tested. --> **Checklist** - I added relevant documentation - I followed the style guidelines of this project - I did a self-review of my code - I made corresponding changes to the documentation - I confirm My changes generate no new warnings - I have added tests that prove my fix is effective or that my feature works - I have added relevant notes to the CHANGELOG.md file (See https://keepachangelog.com/) --------- Co-authored-by: Ben Burtenshaw <[email protected]> Co-authored-by: burtenshaw <[email protected]> Co-authored-by: Paco Aranda <[email protected]>
- Loading branch information
1 parent
a9dd0fb
commit f5ff647
Showing
4 changed files
with
44 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters