-
Install pip dependencies:
pip install -r requirements.pip
-
Install rabbitmq server:
sudo apt-get install rabbitmq-server
(if on Debian)https://www.rabbitmq.com/download.html
(otherwise) -
Run celery in foreground:
celery worker --app=consumer --loglevel=info
-
Publish a message as a 3rd party publisher - pika client:
python publish.py
-
Publish a message as Celery publiser:
python celery_publish.py
Basics of RabbitMQ: https://www.rabbitmq.com/getstarted.html
Basics of Celery: http://docs.celeryproject.org/en/latest/getting-started/index.html
Celery best practices: https://denibertovic.com/posts/celery-best-practices/
Celery autoreload on any change: http://stackoverflow.com/questions/21666229/celery-auto-reload-on-any-changes