setting worker queue restriction for #413
authorBryan <btbonval@gmail.com>
Fri, 27 Feb 2015 02:41:05 +0000 (21:41 -0500)
committerBryan <btbonval@gmail.com>
Fri, 27 Feb 2015 02:41:05 +0000 (21:41 -0500)
celerywrapper.sh

index 4fe68a19bb6b9e59b418bb465b5fd1b50a96b221..d721f2d7454a41245ab108a80db7f2dc0c9b20f6 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/bash
-python manage.py celery worker --pidfile=/tmp/celeryd.pid -l info &
+python manage.py celery worker --pidfile=/tmp/celeryd.pid -l info -Q $CELERY_QUEUE_NAME &
 sleep 5
 workerpid=`cat /tmp/celeryd.pid`
 echo "Started celery worker with pid $workerpid"