This website works better with JavaScript
Головна сторінка
Огляд
Довідка
Реєстрація
Увійти
xiaoguang_li
/
hue
Слідкувати
1
Зірка
0
Відгалуження
0
Файли
Проблеми
0
Запити на злиття
0
Wiki
Дерево:
9c33e2d9c0
Гілки
Теги
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')