Retry to dump status later after unexpected exception
Closes #14678 (grafted from 4715ad5143a679d7a7a78147b1f5343b2b27ad9a) --HG-- branch : 6.0
This commit is contained in:
@@ -68,9 +68,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