I would take a patch to do it. I do not use windows much so it would
be hard for me to test it.

On Dec 8, 11:36 pm, SergeyPo <ser...@zarealye.com> wrote:
> Calling "python web2py.py -C" from Task Scheduler will open console
> window, and this is something I don't want on production server. I
> don't see any good in calling "python web2py.py -C" from Task
> Scheduler because python won't stop after a script finished, so you
> will have a mess of two schedulers: Windows and web2py -C.
>
> Having a cron inside web2py is definitely a great feature, and if it
> runs properly in Windows as separate service (web2py -W install -C ?)
> adds much value to the framework.
>
> On Dec 9, 8:01 am, Brian M <bmere...@gmail.com> wrote:
>
> > OK, so even though cron won't run with web2py as a Windows service,
> > triggering it with "python web2py.py -C" from Task Scheduler or pycron
> > should still work - correct? Assuming of course that if you say have
> > the external scheduler set for every 5 minutes the web2py crontab also
> > has everything at intervals divisible by 5.  It seems that using the
> > two in tandem might be easiest since then you don't have to also
> > define a bunch of curl calls/make batch files.
>
> > On Dec 8, 9:52 pm, David Mitchell <monch1...@gmail.com> wrote:
>
> > > I've used pycron in the past and found it extremely reliable.  Haven't 
> > > tried
> > > it with web2py, but it's probably worth a look
>
> > > 2009/12/9 Brian M <bmere...@gmail.com>
>
> > > > It certainly would be nice to have cron working under the windows
> > > > service. I could use Windows scheduled tasks and curl, but was
> > > > thinking that it would be nice to have the whole thing controlled/
> > > > managed by web2py.
>
> > > > I don't really have any objection to the web2py cron being in its own
> > > > service.
>
> > > > ~Brian
>
> > > > On Dec 8, 8:32 pm, mdipierro <mdipie...@cs.depaul.edu> wrote:
> > > > > How important is this to you? It should not be too difficult to add
> > > > > it. It is just that I think cron and regular web2py should be
> > > > > considered two different services.
>
> > > > > On Dec 8, 7:18 pm, Brian M <bmere...@gmail.com> wrote:
>
> > > > > > Cron doesn'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-in cron would handle that.
>
> > > > > > Is it all forms of cron that don't work with web2py running as a
> > > > > > windows service or just the hard cron? In other words, does soft 
> > > > > > cron
> > > > > > 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.
>
>

--

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.


Reply via email to