Last active
June 4, 2019 11:43
-
-
Save edvardm/c171243e520a028be2934843ca42ada2 to your computer and use it in GitHub Desktop.
Most simple tenacity usage
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Just a simple one-liner to quickly make a thing retrieable | |
import tenacity as tn | |
@tn.retry(wait=tn.wait_exponential(multiplier=1, min=10), stop=tn.stop_after_attempt(5)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment