From 6455cf7852129b9dfcc0a7679df254a4e44533c6 Mon Sep 17 00:00:00 2001 From: Yun Huang Date: Wed, 4 Jul 2018 17:45:51 +0800 Subject: Enable celery for vesagent workers for ocata Change-Id: Ibf07426ec3fa8b9c8b866d95a1e49537094cef70 Issue-ID: MULTICLOUD-230 Signed-off-by: Yun Huang --- ocata/run.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ocata/run.sh') diff --git a/ocata/run.sh b/ocata/run.sh index 70af4df9..541eaf10 100755 --- a/ocata/run.sh +++ b/ocata/run.sh @@ -15,4 +15,9 @@ memcached -d -m 2048 -u root -c 1024 -p 11211 -P /tmp/memcached1.pid export PYTHONPATH=lib/share + +service rabbitmq-server restart +# make sure only 1 worker due to missing the synchronization between workers now +nohup celery -A ocata worker --concurrency=1 --loglevel=debug & + uwsgi --http :9006 --module ocata.wsgi --master --processes 4 -- cgit 1.2.3-korg