Explicitly pass the Celery instance name.

When starting a Celery worker module, it is assumed that the Celery instance within the module is called `app`. This is not the case in the Celery pattern, where it is called `celery`, and so must be explicitly referenced.
This commit is contained in:
Alex Pearce 2014-02-05 20:11:06 +00:00
parent 17a3056be4
commit 3d6de4dd79

View file

@ -86,7 +86,7 @@ disappointed to learn that your ``.wait()`` will never actually return.
That's because you also need to run celery. You can do that by running That's because you also need to run celery. You can do that by running
celery as a worker:: celery as a worker::
$ celery -A your_application worker $ celery -A your_application.celery worker
The ``your_application`` string has to point to your application's package The ``your_application`` string has to point to your application's package
or module that creates the `celery` object. or module that creates the `celery` object.