start_celery_worker.sh
421 Bytes
MAC=1
#TODO: check rabbitmq is on or exit (for all platforms) :
if [ $MAC == 1 ] ; then
brew services list | grep "rabbitmq started"
[[ $? != 0 ]] && echo "RabbitMQ is not started" && exit 1
fi
source ../../private/venv_py3_pyros/bin/activate
cd ../
celery -A pyros worker -Q monitoring_q -n pyros@monitoring -c 1
# does not work, why ?
#celery worker --autoreload -A pyros -Q monitoring_q -n pyros@monitoring -c 1