Open starwander opened 6 months ago
@timeout(4) @retry(tries=6, delay=2) def retry_after_each_timeout():
raise Exception
This code will raise a timeout exception after 4 seconds, not after 6 tries. Uncomment the sleep code make it behaviour right.
@timeout(4) @retry(tries=6, delay=2) def retry_after_each_timeout():
time.sleep(5)
This code will raise a timeout exception after 4 seconds, not after 6 tries. Uncomment the sleep code make it behaviour right.