This website works better with JavaScript
Inicio
Explorar
Ayuda
Registro
Iniciar sesión
xiaoguang_li
/
hue
Seguir
1
Destacar
0
Fork
0
Archivos
Incidencias
0
Pull Requests
0
Wiki
Árbol:
4eb0c81cba
Ramas
Etiquetas
cdh6.2.1
hue-cdh-4.3.0
master
release-4.3.0
hue
/
desktop
/
core
/
ext-py
/
retry-decorator-1.0.0
Jean-Francois Desjeans Gauthier
ab639af720
HUE-8978 [fb] Adding Google Cloud authentication dependencies
hace 6 años
..
retry_decorator
ab639af720
HUE-8978 [fb] Adding Google Cloud authentication dependencies
hace 6 años
tests
ab639af720
HUE-8978 [fb] Adding Google Cloud authentication dependencies
hace 6 años
.gitignore
ab639af720
HUE-8978 [fb] Adding Google Cloud authentication dependencies
hace 6 años
CHANGES.txt
ab639af720
HUE-8978 [fb] Adding Google Cloud authentication dependencies
hace 6 años
LICENSE.txt
ab639af720
HUE-8978 [fb] Adding Google Cloud authentication dependencies
hace 6 años
MANIFEST.in
ab639af720
HUE-8978 [fb] Adding Google Cloud authentication dependencies
hace 6 años
Makefile
ab639af720
HUE-8978 [fb] Adding Google Cloud authentication dependencies
hace 6 años
README.rst
ab639af720
HUE-8978 [fb] Adding Google Cloud authentication dependencies
hace 6 años
setup.py
ab639af720
HUE-8978 [fb] Adding Google Cloud authentication dependencies
hace 6 años
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')