From 1fd50fb805e4fc573c74ebfea3d7b7f96ad92284 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 18 Dec 2024 13:51:44 +0100 Subject: [PATCH] Retry locking tables at the same speed as the dispatcher request --- trytond/trytond/transaction.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trytond/trytond/transaction.py b/trytond/trytond/transaction.py index 1bbab162ee..de1e9bda66 100644 --- a/trytond/trytond/transaction.py +++ b/trytond/trytond/transaction.py @@ -197,7 +197,7 @@ class Transaction(object): count = 0 while True: if count: - time.sleep(0.002 * (_retry - count)) + time.sleep(0.02 * (_retry - count)) try: lock_tables = extras.get('_lock_tables', []) for table in lock_tables: