Skip to content

Instantly share code, notes, and snippets.

@edvardm
Last active June 4, 2019 11:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edvardm/c171243e520a028be2934843ca42ada2 to your computer and use it in GitHub Desktop.
Save edvardm/c171243e520a028be2934843ca42ada2 to your computer and use it in GitHub Desktop.
Most simple tenacity usage
# 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