Use the new setting
This commit is contained in:
1 parent
035eeea54c
commit
134231fda7
1 file changed
+2
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user