Skip to content

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.

@martintamare martintamare requested a review from rbeuque74 as a code owner March 29, 2023 12:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant