We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'd like to log the retry attempt_number in the wrapped/decorated method. Is there any provision to access this from the method being retried?
attempt_number
eg:
@retry(retry_on_exception=retryable_write_exceptions, wrap_exception=True, wait_exponential_multiplier=10000, wait_exponential_max=600000) def retry_read(flakey_method): try: retval = flakey_method() except Exception as e: logger.error('Retry number: {}'.format(**retry_wrappers_attempt_number**)) return retval
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I'd like to log the retry
attempt_number
in the wrapped/decorated method.Is there any provision to access this from the method being retried?
eg:
The text was updated successfully, but these errors were encountered: