[web2py] Re: Scheduler Quick question
Well there are definitely some experts here, but this is what I understand: 1) the scheduler should run as a completely detached process. 2) Windows, OS X & linux have ways of doing this via task schedulers or startup scripts (often the task scheduler has an option that means run at startup). They are very easy to configure, so you need to learn how to do it or ask your host to do it. We're talking one liners. The linux task scheduler is called cron, and often shared hosting environments let you add entries to cron. A search of webfaction docs for cron indicates that they offer cron. It may be possible to do it from within web2py. You will need to have python code which can spawn a completely detached process. I am certain this is a much longer learning curve. -- --- 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/groups/opt_out.
[web2py] Re: Scheduler Quick question
I guess I'm having a hard time configuring the scheduler as a daemon on webfaction (not much of a sys admin) and it seemed more pratical to do it this way, since it would have the added advantage of reloading the modules and I have quite a bit of my code in modules. Quarta-feira, 6 de Fevereiro de 2013 16:42:01 UTC, Niphlod escreveu: > > unless changes are in modules, scheduler loads a pristine environment at > every task (meaning that if you change models or task functions, as soon as > you save the file the scheduler will pick up the changes) > > On Wednesday, February 6, 2013 5:35:10 PM UTC+1, Leonel Câmara wrote: >> >> Yes the scheduler certainly doesn't need to reboot every time the >> webserver restarts. However it's pratical that it does as many times, >> webserver reboots correspond with code updates that I want the scheduler to >> see too. > > -- --- 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/groups/opt_out.
[web2py] Re: Scheduler Quick question
unless changes are in modules, scheduler loads a pristine environment at every task (meaning that if you change models or task functions, as soon as you save the file the scheduler will pick up the changes) On Wednesday, February 6, 2013 5:35:10 PM UTC+1, Leonel Câmara wrote: > > Yes the scheduler certainly doesn't need to reboot every time the > webserver restarts. However it's pratical that it does as many times, > webserver reboots correspond with code updates that I want the scheduler to > see too. -- --- 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/groups/opt_out.
[web2py] Re: Scheduler Quick question
Yes the scheduler certainly doesn't need to reboot every time the webserver restarts. However it's pratical that it does as many times, webserver reboots correspond with code updates that I want the scheduler to see too. -- --- 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/groups/opt_out.
[web2py] Re: Scheduler Quick question
On Wednesday, 6 February 2013 23:13:31 UTC+11, Tim Richardson wrote: > > > > On Wednesday, 6 February 2013 02:46:57 UTC+11, Leonel Câmara wrote: >> >> Yes it exists, independently what I want is to stop and relaunch the >> process when the webserver reboots. > > > Why? > I'm a bit confused. A server is a machine which reboots, a webserver like apache is a process which can restart. It's my belief that you don't need to restart the scheduler just because the web server restarts. If you want to make sure the scheduler is running if your host reboots their server, then you should contact them. My linux shared hosting offers cron. I also have an ec2 virtual machine running Ubuntu server; in that case, I suppose I would add the scheduler to the rc.local start scripts, although I haven't done either yet since I so far only have the scheduler on a windows deployment. -- --- 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/groups/opt_out.
[web2py] Re: Scheduler Quick question
On Wednesday, 6 February 2013 02:46:57 UTC+11, Leonel Câmara wrote: > > Yes it exists, independently what I want is to stop and relaunch the > process when the webserver reboots. Why? -- --- 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/groups/opt_out.
[web2py] Re: Scheduler Quick question
Yes it exists, independently what I want is to stop and relaunch the process when the webserver reboots. -- --- 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/groups/opt_out.
[web2py] Re: Scheduler Quick question
On Tuesday, 5 February 2013 06:34:12 UTC+11, Leonel Câmara wrote: > > Hey, > > I don't know if this is relevant but I'm using webfaction with their > wiki's install script. > > I was wondering what's the easy way to make the new Scheduler run > automatically when my application reboots. > > Thanks > I think that the secheduler runs in its own process and communicates via database tables, so normally the scheduler exists independently of the web server process (I suppose by rebooting your application you mean rebooting the web server?). That's the way it works on windows, in any case. I use rocket and I can restart that process (or service in Windows speak) without needing to stop and start the scheduler service. It just runs regardless of what the web server is doing. -- --- 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/groups/opt_out.