For those who is interested, I downloaded curl for windows, wrote bat file 'curl.exe http://.../appname/controllername/actioname' and put it into windows scheduler. Web2py Cron service would be much more elegant.
On Dec 4, 11:52 pm, SergeyPo <ser...@zarealye.com> wrote: > What is the best way to run controller code periodicaly (GET request)? > I need to run it daily, so windows scheduler would be fine, but what > to schedule? Some BAT file or what? > > On Dec 4, 6:52 pm, mdipierro <mdipie...@cs.depaul.edu> wrote: > > > > > There is a logical problem. the web server and cron are two processes > > and therefore they should be threated as two different services or > > there should be a mechanism to start and stop them both. Right now the > > windows service only handles the web service. > > > The cron code needs some cleanup because right now it is spread over > > multiple modules. I'd rather do the cleanup before adding cron to win > > service. > > > Massimo > > > On Dec 4, 4:32 am, SergeyPo <ser...@zarealye.com> wrote: > > > > Hello, > > > > I am having problem with cron. My crontable: > > > > */5 * * * * root *default/getcaptypes > > > > Controller method 'default/getcaptypes' works fine when you call it > > > directly. It works fine when called by cron when web2py is running as > > > console. But it is not working when I start web2py as windows > > > service. > > > > Options file contains: > > > > extcron = None > > > nocron = None > > > > Where else should I look? > > > > Sergey -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.