details: https://code.tryton.org/tryton/commit/4715ad5143a6
branch: default
user: Cédric Krier <[email protected]>
date: Mon Mar 16 10:30:54 2026 +0100
description:
Retry to dump status later after unexpected exception
Closes #14678
diffstat:
trytond/trytond/status.py | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diffs (20 lines):
diff -r fc096a08b4c3 -r 4715ad5143a6 trytond/trytond/status.py
--- a/trytond/trytond/status.py Sun Mar 22 09:07:23 2026 +0100
+++ b/trytond/trytond/status.py Mon Mar 16 10:30:54 2026 +0100
@@ -69,9 +69,13 @@
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)