Thank you Niphlod! Every day I thank you, Massimo and everyone who contribute, for a scheduler, and web2py in general :) The scheduler is now on autopilot, simulating a workflow and works like a charm... Just loading large data through it, and will see how will app behave once all is in... We'll also switch to nginx and uwsgi, hopefully that will be a good move.
On Fri, Oct 19, 2012 at 9:38 AM, Niphlod <niph...@gmail.com> wrote: > in any external process when you use dal you should commit to save > changes. web2py commits at the end of the request by default, but in the > scheduler (it is an external process, after all) you should do it manually. > You must think to the scheduler as a web2py shell (launched with web2py.py > -M -S yourapp), the execution environment is the same. > > > On Friday, October 19, 2012 3:33:32 PM UTC+2, Adi wrote: >> >> Just noticed that records won't get updated when I call update_or_insert >> from scheduler, unless I include commit. Should it be like that? >> >> >> tbl_a.update_or_insert(...) >> >> tbl_b.update_or_insert(...) >> >> db.commit() >> >> >> >> -- > > > > --