Skip to content
Myr

Explicitly pass the Celery instance name.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

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.

authored by Alex Pearce · committed by Alex Pearce · parent 17a3056 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:docs/patterns/celery.rst+1 added-1 removed
84 unmodified lines
85disappointed to learn that your ``.wait()`` will never actually return.86That's because you also need to run celery. You can do that by running87celery as a worker::8889 $ celery -A your_application worker89 $ celery -A your_application.celery worker9091The ``your_application`` string has to point to your application's package92or module that creates the `celery` object.