Use the new setting

This commit is contained in:
tcely authored and GitHub committed 2025-04-17 03:27:17 -04:00
1 parent 035eeea54c
commit 134231fda7
1 file changed
+2 -1
+2 -1
View File
@@ -217,7 +217,8 @@ def save_model(instance):
# "database is locked" errors
with atomic(durable=False):
instance.save()
time.sleep(random.expovariate(1.5))
arg = getattr(settings, 'SQLITE_DELAY_FLOAT', 1.5)
time.sleep(random.expovariate(arg))
@atomic(durable=False)