Description: | An easy to use retry decorator.
This package is a fork from the retry package, but with some of added
community-sourced features.
Features
New features in reretry:
• Log traceback of an error that lead to a failed attempt.
• Call a custom callback after each failed attempt.
• Can be used with async functions.
From original retry:
• Retry on specific exceptions.
• Set a maximum number of retries.
• Set a delay between retries.
• Set a maximum delay between retries.
• Set backoff and jitter parameters.
• Use a custom logger.
• No external dependencies (stdlib only).
• (Optionally) Preserve function signatures (pip install decorator). |