Re: [flask] When celery tasks require configuration
- From:
- Sojin
- Date:
- 2011-12-07 @ 13:17
better approach would to keep configurations separately in a
'celeryconfig.py' file in PYTHONPATH.
On Wed, Dec 7, 2011 at 7:32 AM, Craig Younkins <cyounkins@gmail.com> wrote:
> What do people do when a Celery task requires application configuration?
> Surely passing the application in as an argument won't work because it
> can't be serialized. Do people pass in the flask.Config instance, just
> elements that are necessary for the Celery task, or something else
> entirely? Thanks!
>
> Craig Younkins
>