This website works better with JavaScript
Ana Sayfa
Keşfet
Yardım
Üye Ol
Giriş Yap
xiaoguang_li
/
hue
İzle
1
Yıldızla
0
Çatalla
0
Dosyalar
Sorunlar
0
Değişiklik İstekleri
0
Wiki
Ağaç:
f9d930b41b
Dallar
Biçim İmleri
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
6 yıl önce
..
retry_decorator
ab639af720
HUE-8978 [fb] Adding Google Cloud authentication dependencies
6 yıl önce
tests
ab639af720
HUE-8978 [fb] Adding Google Cloud authentication dependencies
6 yıl önce
.gitignore
ab639af720
HUE-8978 [fb] Adding Google Cloud authentication dependencies
6 yıl önce
CHANGES.txt
ab639af720
HUE-8978 [fb] Adding Google Cloud authentication dependencies
6 yıl önce
LICENSE.txt
ab639af720
HUE-8978 [fb] Adding Google Cloud authentication dependencies
6 yıl önce
MANIFEST.in
ab639af720
HUE-8978 [fb] Adding Google Cloud authentication dependencies
6 yıl önce
Makefile
ab639af720
HUE-8978 [fb] Adding Google Cloud authentication dependencies
6 yıl önce
README.rst
ab639af720
HUE-8978 [fb] Adding Google Cloud authentication dependencies
6 yıl önce
setup.py
ab639af720
HUE-8978 [fb] Adding Google Cloud authentication dependencies
6 yıl önce
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')