Blame view

src/monitoring/start_celery_worker.sh 421 Bytes
1a2dc19f   Etienne Pallier   nombreux bugfixes...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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