From 3aea76f13200f0a35663929650a6008ab7f27aa3 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Fri, 11 May 2018 15:20:23 +0200 Subject: [PATCH] Set the worker concurrency --- app/scripts/worker.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/scripts/worker.sh b/app/scripts/worker.sh index 1dd4ecc9..bcfc9fa2 100755 --- a/app/scripts/worker.sh +++ b/app/scripts/worker.sh @@ -4,6 +4,7 @@ app='/srv/app' manage=$app'/manage.py' wsgi=$app'/wsgi.py' +concurrency=12 # stating apps pip uninstall -y south @@ -12,11 +13,10 @@ pip install django-debug-toolbar==1.6 pip install -e git+https://github.com/Parisson/django-jqchat.git@dj1.8#egg=django-jqchat pip install -e git+https://github.com/Parisson/saved_searches.git@dj1.8#egg=saved_searches-2.0.0-beta - # waiting for other services bash $app/scripts/wait.sh # Starting celery worker with the --autoreload option will enable the worker to watch for file system changes # This is an experimental feature intended for use in development only # see http://celery.readthedocs.org/en/latest/userguide/workers.html#autoreloading -python $manage celery worker --autoreload -A worker +python $manage celery worker --autoreload -A worker --concurrency=$concurrency -- 2.39.5