From b9e3e4704c1929fef5d1900751a1c6eaa894fb38 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Sat, 14 Mar 2015 02:46:40 +0100 Subject: [PATCH] increase sqlite db lock time --- examples/deploy/celery_app.sh | 6 +----- examples/sandbox/settings.py | 3 +++ 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/examples/deploy/celery_app.sh b/examples/deploy/celery_app.sh index f92c6df..6ffe3ed 100644 --- a/examples/deploy/celery_app.sh +++ b/examples/deploy/celery_app.sh @@ -5,13 +5,9 @@ app_dir='/opt/TimeSide/' sandbox_dir='/home/timeside/' manage=$sandbox_dir'manage.py' -# cp -uR /opt/TimeSide/examples/sandbox/* /home/timeside/ - -echo "YYYYYYYYYYYYYY" - pip install django-celery python $manage migrate --noinput # run Celery worker for our project myproject with Celery configuration stored in Celeryconf -su -c "$manage celery worker -A celery_app" +$manage celery worker -A celery_app diff --git a/examples/sandbox/settings.py b/examples/sandbox/settings.py index 7254d78..a6ee4f4 100644 --- a/examples/sandbox/settings.py +++ b/examples/sandbox/settings.py @@ -22,6 +22,9 @@ DATABASES = { 'PASSWORD': '', # Not used with sqlite3. 'HOST': '', # Set to empty string for localhost. Not used with sqlite3. 'PORT': '', # Set to empty string for default. Not used with sqlite3. + 'OPTIONS': { + 'timeout': 20, + } } } -- 2.39.5