This is how I've been using celery in my pyramid applications with success, 
in a way that seems to work whever celery changes some internals:

https://github.com/ergo/testscaffold/blob/master/testscaffold/celery/__init__.py

then in app init i do:

    # configure celery in later phase
    def wrap_config_celery():
        configure_celery(config.registry)

    config.action(None, wrap_config_celery, order=PHASE3_CONFIG + 999)

This even allows for working with application plugins nicely.

I should probably make a cookbook recipe for it.

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pylons-discuss/9bca248d-2ca8-405d-8fcb-b53057e53ed3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to