Skip to content
New issue

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

Unexpected behaviour when used together with retry #85

Open
starwander opened this issue Apr 30, 2024 · 0 comments
Open

Unexpected behaviour when used together with retry #85

starwander opened this issue Apr 30, 2024 · 0 comments

Comments

@starwander
Copy link

starwander commented Apr 30, 2024

@timeout(4)
@Retry(tries=6, delay=2)
def retry_after_each_timeout():
# time.sleep(5)
raise Exception

This code will raise a timeout exception after 4 seconds, not after 6 tries.
Uncomment the sleep code make it behaviour right.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant