From 3d6de4dd7980d5a9bd8f031d01830486c4d1607c Mon Sep 17 00:00:00 2001 From: Alex Pearce Date: Wed, 5 Feb 2014 20:11:06 +0000 Subject: [PATCH] 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. --- docs/patterns/celery.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/patterns/celery.rst b/docs/patterns/celery.rst index c7cd3922..9bbb38ff 100644 --- a/docs/patterns/celery.rst +++ b/docs/patterns/celery.rst @@ -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.