]> git.parisson.com Git - telemeta.git/commitdiff
Set the worker concurrency
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Fri, 11 May 2018 13:20:23 +0000 (15:20 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Fri, 11 May 2018 13:20:23 +0000 (15:20 +0200)
app/scripts/worker.sh

index 1dd4ecc9b0c4d7bedaee325f351c089b3ffe0578..bcfc9fa2d3b87251af3b35477ee18f03df3363c8 100755 (executable)
@@ -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