-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This uses the urllib3 Retry to add retries with back-off to requests to the API-server that error. It will retry errors with the listed statuses, for all HTTP methods. If the response contains a Retry-After header (which we expect to be the case for 429/Too Many Requests), the delay it specifies will be respected. For other cases, it will back off exponentially (after one immediate retry, doubling) up to 10 times, with the library's maximum delay (120s). Fixes #72
- Loading branch information
Showing
2 changed files
with
31 additions
and
3 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