This website works better with JavaScript
Главная
Обзор
Помощь
Регистрация
Вход
xiaoguang_li
/
hue
Следить
1
В избранное
0
Ответвить
0
Файлы
Задачи
0
Запросы на слияние
0
Вики
Дерево:
e9a1ced1d6
Ветки
Метки
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')