projects
/
bluesky.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
25f5cec
)
Add timeout on cleaner S3 retry.
author
Michael Vrable
<mvrable@cs.ucsd.edu>
Mon, 18 Oct 2010 21:48:47 +0000
(14:48 -0700)
committer
Michael Vrable
<mvrable@cs.ucsd.edu>
Mon, 18 Oct 2010 21:48:47 +0000
(14:48 -0700)
cleaner/cleaner
patch
|
blob
|
history
diff --git
a/cleaner/cleaner
b/cleaner/cleaner
index
9103769
..
c4b1222
100755
(executable)
--- a/
cleaner/cleaner
+++ b/
cleaner/cleaner
@@
-8,7
+8,7
@@
# Copyright (C) 2010 The Regents of the University of California
# Written by Michael Vrable <mvrable@cs.ucsd.edu>
-import base64, os, re, struct, sys
+import base64, os, re, struct, sys
, time
import boto
from boto.s3.key import Key
@@
-75,6
+75,7
@@
def retry_wrap(method):
except:
print >>sys.stderr, "S3 operation failed, retrying..."
self.connect()
+ time.sleep(1.0)
return method(self, *args, **kwargs)
return wrapped