run_celery.sh 244 B

12345678
  1. #!/bin/sh
  2. # wait for RabbitMQ server to start
  3. sleep 10
  4. cd myproject
  5. # run Celery worker for our project myproject with Celery configuration stored in Celeryconf
  6. su -m myuser -c "celery worker -A myproject.celeryconf -Q default -n default@%h"