REGULAR TASK EVERY DAY

30 views
Skip to first unread message

Áureo Dias Neto

unread,
Mar 23, 2017, 7:32:40 AM3/23/17
to web2py-users
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?


Dave S

unread,
Mar 23, 2017, 6:43:14 PM3/23/17
to web2py-users


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

Reply all
Reply to author
Forward
0 new messages