details:   https://code.tryton.org/tryton/commit/ff460f650368
branch:    7.6
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
        (grafted from 4715ad5143a679d7a7a78147b1f5343b2b27ad9a)
diffstat:

 trytond/trytond/status.py |  10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diffs (20 lines):

diff -r c6a461d9277e -r ff460f650368 trytond/trytond/status.py
--- a/trytond/trytond/status.py Mon Mar 16 12:28:56 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)
 
 

Reply via email to