This website works better with JavaScript
Эхлэл
Бүгдийг харах
Тусламж
Бүртгүүлэх
Нэвтрэх
xiaoguang_li
/
hue
Үзэх жагсаалтад нэмэх
1
Онцлох жагсаалтад нэмэх
0
Салаа
0
Файлууд
Асуудлууд
0
Хуулах хүсэлтүүд
0
Мэдлэгийн сан
Мод:
04b1f3b297
Салаанууд
Тагууд
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 жил өмнө
..
retry_decorator
ab639af720
HUE-8978 [fb] Adding Google Cloud authentication dependencies
6 жил өмнө
tests
ab639af720
HUE-8978 [fb] Adding Google Cloud authentication dependencies
6 жил өмнө
.gitignore
ab639af720
HUE-8978 [fb] Adding Google Cloud authentication dependencies
6 жил өмнө
CHANGES.txt
ab639af720
HUE-8978 [fb] Adding Google Cloud authentication dependencies
6 жил өмнө
LICENSE.txt
ab639af720
HUE-8978 [fb] Adding Google Cloud authentication dependencies
6 жил өмнө
MANIFEST.in
ab639af720
HUE-8978 [fb] Adding Google Cloud authentication dependencies
6 жил өмнө
Makefile
ab639af720
HUE-8978 [fb] Adding Google Cloud authentication dependencies
6 жил өмнө
README.rst
ab639af720
HUE-8978 [fb] Adding Google Cloud authentication dependencies
6 жил өмнө
setup.py
ab639af720
HUE-8978 [fb] Adding Google Cloud authentication dependencies
6 жил өмнө
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')