From 9fc9f52cfb9b9fed778c842b9c21f3821f9b6c4b Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Sun, 28 Feb 2021 22:55:00 -0500 Subject: [PATCH] increase sqlite timeout and dont check for same thread condition --- archivebox/core/settings.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/archivebox/core/settings.py b/archivebox/core/settings.py index 0a33d7f1..5049cdd7 100644 --- a/archivebox/core/settings.py +++ b/archivebox/core/settings.py @@ -144,6 +144,10 @@ DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': DATABASE_NAME, + 'OPTIONS': { + 'timeout': 60, + 'check_same_thread': False, + }, # DB setup is sometimes modified at runtime by setup_django() in config.py } }