On Dec 17, 2010, at 11:17 PM, mdipierro wrote: > > cron just starts nwe web2py.py processes. Each cron task executes the > models. > > If you are working on what I think you are working get rid of cron and > use a single background process that loops.
I was looking at the code, and have a question. When gluon.shell.run is invoked on behalf of a cron job, and it does if f: exec ('print %s()' % f, _env) ...what's the point of the print? What's stdout at this point? > > Massimo > > On Dec 18, 12:27 am, Thadeus Burgess <thade...@thadeusb.com> wrote: >> Do the models get executed before or after hard-cron process is started? And >> are those models available to the scope of the cron application. In my >> example cron would be executing a long-running controller function. >