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()
>
>
>
>

-- 



Reply via email to