Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for having a maximum retry after wait length. #3233

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

alexjircan
Copy link

@alexjircan alexjircan commented Dec 14, 2023

Introducing a new feature that allows you to set a maximum duration for retry wait length using the max_retry_wait_length argument. If a response contains a Retry-After header with value greater than the maximum set and respect_retry_after_header is set to True, we will raise a MaxRetryWaitExceededError.

Fixes #1338

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Retry.get_retry_after does't respect time-out
3 participants