An example that can be found in The tutorial on celeryproject.org
Run the worker with:
sudo -u nobody celery -A celery_test.tasks worker --loglevel=info
Assumes:
# for rabbit as a backend:
export CELERY_RESULT_BACKEND='amqp'
export BROKER_URL='amqp://[email protected]//'
# for redis as a backend:
export CELERY_RESULT_BACKEND='redis://redis.local:6379/0'
export BROKER_URL='redis://redis.local:6379/0'