Closed martintamare closed 1 year ago
Hello, Thanks for your proposal. The current implementation would imply that all APIError, such as 400 Bad Request would be retried, which is not something we want.
A new implementation of the retry that would retry network error, or internal server error could be accepted.
Thanks Romain
I added exceptions as a parameter and created another PR.
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, if call would rise an APIError, it wall autoretry.
Tests are not done yet but will be, if you want it interesting.