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

Feat autoretry #116

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

Feat autoretry #116

wants to merge 2 commits into from

Conversation

martintamare
Copy link

Following #69

I think auto retry would be a nice feature.

What do you think about the following approach ?

It use backoff and by default has the same behavior as the old client.
If someone would use auto_retry=4 in client init, by default Exceptions HTTPError and NetworkError would perform
an auto_retry. Exceptions can be parametrize so as to perform auto_retry on precise exceptions you want.

Tests are not done yet but will be, if you want it interesting.

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.

1 participant