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.
Following https://github.com/ovh/python-ovh/pull/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.