Take a look at http://pypi.python.org/pypi/tgext.asyncjob it should do what you are looking for
On Fri, Sep 9, 2011 at 2:55 PM, León Domingo <[email protected]> wrote: > Hi, > I have a long process (/long_process) to be executed which check the > db and send some e-mails. The thing is that I'm using a web-controller > because I want to make use of all the stuff is already defined (model, > DBSession, logging, etc) in the app. I'd rather to have this long > process in a script and executed in a crontab task but it's quite > difficult to do this because you have to set up some things (just like > TG2 does) in order to get the thing running. > > Is it possible to do that (last time I question this...) or it'd be > better to implement another model, another db session, etc, and don't > make use of TG2? > > Thanks > > León > > -- > You received this message because you are subscribed to the Google Groups > "TurboGears" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/turbogears?hl=en. > > -- You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/turbogears?hl=en.

