Please do the following check. in gluon/widget.py there if cron and not options.nocron: print 'Starting cron...' contrib.cron.crontype = 'hard' cron = contrib.cron.hardcron() cron.start()
is this code executed when you run with -W? What are the values of cron and options.nocron? On Dec 9, 3:43 pm, Brian M <bmere...@gmail.com> wrote: > Massimo - I'm willing to help do some testing since I'm stuck on > Windows. > > SergeyPo - isn't using unixcronand "python web2py.py -C -D > 1" (externalcron) the recommended method when using FastCGI or WSGI? > (http://web2py.com/examples/default/cron) Why would doing essentially > the same thing with the Windows scheduler be any different? I don't > think python is going to stay running once thecronrun is done. > > ~Brian > > On Dec 9, 10:55 am, mdipierro <mdipie...@cs.depaul.edu> wrote: > > > I will try work on this later today. > > > On Dec 9, 5:55 am, Nicol van der Merwe <aspersie...@gmail.com> wrote: > > > > I am in the same boat as you, Brian. I just started a project hoping this > > > is > > > possible. > > > > I would try and submit a patch for this but I have *no* time at all as I > > > am > > > swamped with work :(. > > > > On Wed, Dec 9, 2009 at 3:18 AM, Brian M <bmere...@gmail.com> wrote: > > > >Crondoesn't work when running windows as a service?! :( Well that > > > > just screwed up my plans - I'm working on a reporting app that will > > > > rely fairly heavily on regularly pulling in external data and figured > > > > the built-incronwould handle that. > > > > > Is it all forms ofcronthat don't work with web2py running as a > > > > windows service or just the hardcron? In other words, does softcron > > > > still work? > > > > > ~Brian > > > > > On Dec 4, 9:52 am, mdipierro <mdipie...@cs.depaul.edu> wrote: > > > > > There is a logical problem. the web server andcronare 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. > > > > > > Thecroncode needs some cleanup because right now it is spread over > > > > > multiple modules. I'd rather do the cleanup before addingcronto win > > > > > service. > > > > > > Massimo > > > > > > On Dec 4, 4:32 am, SergeyPo <ser...@zarealye.com> wrote: > > > > > > > Hello, > > > > > > > I am having problem withcron. My crontable: > > > > > > > */5 * * * * root *default/getcaptypes > > > > > > > Controller method 'default/getcaptypes' works fine when you call it > > > > > > directly. It works fine when called bycronwhen 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<web2py%2bunsubscr...@googlegroups.com> > > > > . > > > > For more options, visit this group at > > > >http://groups.google.com/group/web2py?hl=en. > > > > -- > > > > Jonathan > > > Swift<http://www.brainyquote.com/quotes/authors/j/jonathan_swift.html> > > > - "May you live every day of your life." > > -- 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.