用于重试exec a方法的修饰符
retries的Python项目详细描述
#‘重试’装饰器
[![构建状态](https://travis-ci.org/soasme/retries.png?branch=master)(https://travis ci.org/soasme/retries)
tries=3,delay=3.5)
def fetch_page():
通过
@重试(错误=(ttTransportException,),延迟=0.1)
def thrift_call():
通过
[![构建状态](https://travis-ci.org/soasme/retries.png?branch=master)(https://travis ci.org/soasme/retries)
tries=3,delay=3.5)
def fetch_page():
通过
@重试(错误=(ttTransportException,),延迟=0.1)
def thrift_call():
通过