From: Guillaume Pellerin Date: Fri, 11 May 2018 13:20:23 +0000 (+0200) Subject: Set the worker concurrency X-Git-Tag: 1.7.0~2^2~4^2~11 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=3aea76f13200f0a35663929650a6008ab7f27aa3;p=telemeta.git Set the worker concurrency --- 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