Retry locking tables at the same speed as the dispatcher request

This commit is contained in:
Cédric Krier committed 2024-12-18 13:51:44 +01:00
1 parent 167dc9629e
commit 1fd50fb805
1 file changed
+1 -1
+1 -1
View File
@@ -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: