1 parent
145ce8f2f8
commit
a88c575fcc
1 file changed
+7
-3
@@ -69,9 +69,13 @@ def dump(path):
|
||||
|
||||
def dumper(path):
|
||||
while True:
|
||||
if dump(path):
|
||||
time.sleep(5)
|
||||
else:
|
||||
try:
|
||||
if dump(path):
|
||||
time.sleep(5)
|
||||
else:
|
||||
time.sleep(60)
|
||||
except Exception:
|
||||
logger.exception("status dumper crashed")
|
||||
time.sleep(60)
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user