maybe http://www.celeryproject.org/ could be useful for that On Mar 18, 2014 2:02 PM, "Gerhard Schmidt" <[email protected]> wrote:
> HI > > sorry i think i wasn't clear on the purpose. > > I have a running request. This request should start some work but the > request should finished without waiting for the works to finish. > > e.g. start some calculations that are not required for the actual > request to finish but should be made as soon as possible to provide > information for future requests. > > i would like to start a thread that does the calculations, this thread > needs read and write access to the objects in the ZODB but not the > request that triggered the calculations. > > When I simply start a thread it can't access the information in the zodb > because there is no zodb connection in the thread. Is there a way to > pass a zodb connection to the thread. The Maintaince work should run in > its own transaction. > > Regards > Estartu > > On 18.03.2014 13:32, Chris Rossi wrote: > > If you use ZEO, you can connect from multiple clients. Then you can > > have a web server and a console script running simultaneously. > > > > Chris > > > > > > On Tue, Mar 18, 2014 at 7:39 AM, Gerhard Schmidt <[email protected] > > <mailto:[email protected]>> wrote: > > > > Hi, > > > > is there way to start a background thread to do some cleanup and > > maintaining things, without blocking the actual request. > > > > Regards > > Estartu > > > -- > --------------------------------------------------------------------------- > Gerhard Schmidt | http://www.augusta.de/~estartu | > Fischbachweg 3 | | PGP Public Key > 86856 Hiltenfingen | JabberID: [email protected] | on request > Germany | | > > > -- 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]. Visit this group at http://groups.google.com/group/pylons-discuss. For more options, visit https://groups.google.com/d/optout.
