Commit 7ab9f294 authored by Rafael Monnerat's avatar Rafael Monnerat

agent: Set a maxium delay to retry on network failure.

parent 91d4bb09
......@@ -61,7 +61,8 @@ def retryOnNetworkFailure(func):
print 'Retry method %s in %i seconds' % (func, retry_time)
time.sleep(retry_time)
retry_time += retry_time >> 1
retry_time = min(retry_time*1.5, 640)
wrapper.__name__ = func.__name__
wrapper.__doc__ = func.__doc__
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment