Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 1.14 KB

celery.md

File metadata and controls

34 lines (24 loc) · 1.14 KB

Celery

Installation of RabbitMQ

apt-get update
apt-get install rabbitmq-server

If you use another os: RabbitMQ Installation for Other Distribution
Additional document: Install and Manage RabbitMQ

Setting up RabbitMQ

rabbitmqctl add_vhost doit_vhost
rabbitmqctl set_permissions -p doit_vhost guest ".*" ".*" ".*"

For further information of setting up RabbitMQ: Setting up RabbitMQ

How to run Celery

celery -A doit worker -n doit_celery@%h --statedb=./doit_worker.state

If you want to see your tasks list or output status:

celery -A doit worker -l info -n doit_celery@%h --statedb=./doit_worker.state

Note for supervisor users: The % sign must be escaped by adding a second one: %%h.
For further information of installation and running Celery: First Steps With Celery