Commit graph

4 commits

Author SHA1 Message Date
Armin Ronacher
e95cef66a3 Merge pull request #931 from aphexcx/patch-1
Update celery.rst
2014-02-08 17:47:22 +00:00
Alex Pearce
3d6de4dd79 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.
2014-02-05 20:11:06 +00:00
Afik
67c165bcbb Update celery.rst
With the latest version of Celery (3.1.6), following this tutorial produces the following error when attempting to start the celery worker: 

    user_preload = tuple(self.app.user_options['preload'] or ())
AttributeError: 'Flask' object has no attribute 'user_options'

Using `app` as the variable name here confuses celery. Renaming `app` to `flask_app` in the tutorial solves the issue and allows the celery worker to start successfully.
2013-12-16 22:04:51 -08:00
Armin Ronacher
05f162329d Added celery pattern 2013-01-27 00:38:25 +00:00