Answering my own post here, in case it might help someone else...

In scheduled jobs, you have to be careful to refer to and make use of
the original model.py connection to the database, otherwise each time
your job runs,  you will end up creating a new connection (and
eventually crash with 'too many open files').   the problem and
solution is hinted at here: http://docs.turbogears.org/1.0/ModelOutsideTG

I posted a solution to my problem in the turbogears-doc forum, since
the online docs for Scheduler at http://docs.turbogears.org/1.0/Scheduler
do not deal with the practical example of actually interacting with
the database!

there's also a related discussion in this forum also with a solution
at:
http://groups.google.com/group/turbogears/t/aba14c7d18807d2f


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to