If you're going to script a request, then you'll need to follow the 
bootstrap/commandline/shell docs.  That means loading your whole app and 
tying into the request lifecycle.  

I have some various commandline tasks that require me to run several tasks 
though a pyramid environment.

To handle those, I create a single environment via `bootstrap(ini_file)` 
and run a series of requests through it by using 
`pyramid.scripting.prepare_requst) to reset it each time.  something like 
that might help you, but you'll have to play around with specifics.

Generally speaking though, people want to use Celery to offload tasks -- 
not handle entire requests.

You received this message because you are subscribed to the Google Groups 
"pylons-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pylons-devel+unsubscr...@googlegroups.com.
To post to this group, send email to pylons-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/pylons-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to