diff options
-rw-r--r-- | bitbake/lib/toaster/toastermain/settings.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastermain/settings.py b/bitbake/lib/toaster/toastermain/settings.py index c72a90411b..b149a5ed83 100644 --- a/bitbake/lib/toaster/toastermain/settings.py +++ b/bitbake/lib/toaster/toastermain/settings.py | |||
@@ -49,6 +49,12 @@ DATABASES = { | |||
49 | } | 49 | } |
50 | } | 50 | } |
51 | 51 | ||
52 | # Needed when Using sqlite especially to add a longer timeout for waiting | ||
53 | # for the database lock to be released | ||
54 | # https://docs.djangoproject.com/en/1.6/ref/databases/#database-is-locked-errors | ||
55 | if 'sqlite' in DATABASES['default']['ENGINE']: | ||
56 | DATABASES['default']['OPTIONS'] = { 'timeout': 20 } | ||
57 | |||
52 | # Reinterpret database settings if we have DATABASE_URL environment variable defined | 58 | # Reinterpret database settings if we have DATABASE_URL environment variable defined |
53 | 59 | ||
54 | if 'DATABASE_URL' in os.environ: | 60 | if 'DATABASE_URL' in os.environ: |