On Thursday, March 23, 2017 at 4:32:40 AM UTC-7, Áureo Dias Neto wrote:
>
> Hello guy's, i have a function in controller thats calcule values of all 
> the database everytime an user access the index page.. 
> but now, i want to run this in server side, every hour or day.. how to do 
> it? use schedular or cron?
>

Scheduler:  you can either use a period (with or without prevent_drift) in 
2.14.6 (and back quite a ways),
or grab the daily to get the cron-like argument.
<URL:https://groups.google.com/d/msg/web2py/bHoscyybd8E/juZ0d-OvCQAJ>

The web2py cron mentioned in the book is deprecated, and the system cron is 
overkill.

/dps

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to