Chromium Code Reviews| Index: rietveld.py |
| diff --git a/rietveld.py b/rietveld.py |
| index d78c0171d468f789ca5be44b3aea1434cd4dbed8..fbad701ad0ac029b9a632796ebc3618c85713d8d 100644 |
| --- a/rietveld.py |
| +++ b/rietveld.py |
| @@ -434,8 +434,8 @@ class Rietveld(object): |
| raise |
| if not 'timed out' in str(e): |
| raise |
| - # If reaching this line, loop again. Uses a small backoff. |
| - time.sleep(1+maxtries*2) |
| + # If reaching this line, loop again. Uses an exponential backoff. |
| + time.sleep(1+5**retry) |
|
M-A Ruel
2014/06/11 13:27:41
5**3 = 125. That's a hell of a long time.
I don't
Sergiy Byelozyorov
2014/06/11 15:46:42
I guess what I didn't consider is interactive usag
M-A Ruel
2014/06/11 17:52:48
Oh, I'm concerned about try jobs what would get st
Sergiy Byelozyorov
2014/06/12 09:43:50
Why is this an issue? We only wait extra few minut
M-A Ruel
2014/06/12 12:18:07
Yes but I don't know if you specifically looked at
|
| finally: |
| upload.ErrorExit = old_error_exit |