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 | |
signature.asc
Description: OpenPGP digital signature
