I try to start a Celery worker server from a command line:
celery -A tasks worker --loglevel=info
The code in tasks.py:
import
Celery uses celery
file for storing configuration of your app, you can't just give a python file with tasks and start celery.
You should define celery
file ( for Celery>3.0; previously it was celeryconfig.py
)..
celeryd --app app.celery -l info
This example how to start celery with config file at app/celery.py
Here is example of celery file: https://github.com/Kami/libcloud-sandbox/blob/master/celeryconfig.py