forked from orbit-oss/flask
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:
parent
17a3056be4
commit
3d6de4dd79
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
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
|
||||
or module that creates the `celery` object.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue