Jean-Francois Desjeans Gauthier ab639af720 HUE-8978 [fb] Adding Google Cloud authentication dependencies il y a 6 ans
..
retry_decorator ab639af720 HUE-8978 [fb] Adding Google Cloud authentication dependencies il y a 6 ans
tests ab639af720 HUE-8978 [fb] Adding Google Cloud authentication dependencies il y a 6 ans
.gitignore ab639af720 HUE-8978 [fb] Adding Google Cloud authentication dependencies il y a 6 ans
CHANGES.txt ab639af720 HUE-8978 [fb] Adding Google Cloud authentication dependencies il y a 6 ans
LICENSE.txt ab639af720 HUE-8978 [fb] Adding Google Cloud authentication dependencies il y a 6 ans
MANIFEST.in ab639af720 HUE-8978 [fb] Adding Google Cloud authentication dependencies il y a 6 ans
Makefile ab639af720 HUE-8978 [fb] Adding Google Cloud authentication dependencies il y a 6 ans
README.rst ab639af720 HUE-8978 [fb] Adding Google Cloud authentication dependencies il y a 6 ans
setup.py ab639af720 HUE-8978 [fb] Adding Google Cloud authentication dependencies il y a 6 ans

README.rst


Usage
-----

Retry decorator

::

#!/usr/bin/env python

from __future__ import print_function
from retry_decorator import *

@retry(Exception, tries = 3, timeout_secs = 0.1)
def test_retry():
import sys
print('hello', file = sys.stderr)
raise Exception('Testing retry')

if __name__ == '__main__':
try:
test_retry()
except Exception as e:
print('Received the last exception')