-
Install the requirements
pip install -r requirements.txt
-
Run docker rabbitmq or install the rabbitmq
docker run -d --hostname rabbitmq --name rabbitmq -p 15672:15672 -p 5672:5672 -e RABBITMQ_DEFAULT_USER=guest -e RABBITMQ_DEFAULT_PASS=guest rabbitmq:3-management
-
Start the Celery
celery -A tasks worker -c <number concurrents> -P eventlet -Q celery,hello --loglevel=info --hostname=localtasks
-
Execute the project
python run.py
- Install the requirements
pip install -r requirements.txt
- Run docker rabbitmq or install the rabbitmq
docker run -d --hostname rabbitmq --name rabbitmq -p 15672:15672 -p 5672:5672 -e RABBITMQ_DEFAULT_USER=guest -e RABBITMQ_DEFAULT_PASS=guest rabbitmq:3-management
- Install node requirements
cd consumer && npm install
- Run node consumer
node worker.js
- Execute kombu producer
python kombu_producer.py