From 07191e9ea31e7d451bc47f61d8c600010d2bfc01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 16 Mar 2026 10:30:54 +0100 Subject: [PATCH] Retry to dump status later after unexpected exception Closes #14678 (grafted from 4715ad5143a679d7a7a78147b1f5343b2b27ad9a) --HG-- branch : 6.0 --- trytond/trytond/status.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/trytond/trytond/status.py b/trytond/trytond/status.py index 7cf85a5f6f..2b7dc7bacb 100644 --- a/trytond/trytond/status.py +++ b/trytond/trytond/status.py @@ -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)