3 ms·
For the client side, when servers do this, look for a library like: https://tenacity.readthedocs.io/en/latest/ https://tenacity.readthedocs.io/en/latest/ This
by Terretta 2y ago
For the client side, when servers do this, look for a library like:
https://tenacity.readthedocs.io/en/latest/ https://tenacity.readthedocs.io/en/latest/
This is one of the easiest when slinging third party APIs in Python:
- Generic Decorator API
- Specify stop condition (i.e. limit by number of attempts)
- Specify wait condition (i.e. exponential backoff sleeping between attempts)
- Customize retrying on Exceptions
- Customize retrying on expected returned result
- Retry on coroutines
- Retry code block with context manager