Re: [web2py] Re: testing scheduler in windows

2011-09-07 Thread Martín Mulone
http://code.google.com/p/web2py/issues/detail?id=411 2011/9/5 Brian M > OK, I've got the scheduler reliably (I think) working now under Linux - I > just changed my patch mentioned above a bit to make it so that WEB2PY_PATH > would work even if you didn't launch from the same folder as web2py is

Re: [web2py] Re: testing scheduler in windows

2011-09-05 Thread Brian M
I think I've got the scheduler sorted out for windows (other than a lack of debug messages from the workers, suspect it's due to a lack of os.fork()). My TypeError: demo1() keywords must be strings was fixed with http://stackoverflow.com/questions/956867/how-to-get-string-objects-instead-unico

Re: [web2py] Re: testing scheduler in windows

2011-09-05 Thread Brian M
OK, I've managed get the scheduler to partially work under windows. I had to add if __name__ == '__main__': to web2py.py right before actually starting web2py (line 19). This appears to have solved the problem of web2py starting over and over again, now when I run python web2py.py -K scheduler

Re: [web2py] Re: testing scheduler in windows

2011-09-05 Thread Brian M
OK, I've got the scheduler reliably (I think) working now under Linux - I just changed my patch mentioned above a bit to make it so that WEB2PY_PATH would work even if you didn't launch from the same folder as web2py is in. At line 61, replace: if 'WEB2PY_PATH' in os.environ: sys.path.appen

Re: [web2py] Re: testing scheduler in windows

2011-09-05 Thread Brian M
I found that under linux I was able to get the scheduler to successfully run a task by making sure os.environ['WEB2PY-PATH'] was defined. What I did was edit gluon/scheduler.py and change lines 61-62 from if 'WEB2PY_PATH' in os.environ: sys.path.append(os.environ['WEB2PY_PATH']) to if 'WEB2P

Re: [web2py] Re: testing scheduler in windows

2011-09-05 Thread Brian M
I just put together an Ubuntu VM to test in and yeah, the scheduler doesn't work quite right there either. First off it appears that the DB tables don't get defined there either without intervention -- I changed migrate=False to migrate=True on line 265 and then running *python web2py.py -K sc

Re: [web2py] Re: testing scheduler in windows

2011-09-05 Thread Martín Mulone
The new version is completely broke in linux too, I confirm this. Exception in thread Thread-1: Traceback (most recent call last): File "C:\Python26\lib\threading.py", line 525, in __bootstrap_inner self.run() File "C:\Users\Brian\Documents\development\web2py\google hg repo\trunk\gluon\s c

Re: [web2py] Re: testing scheduler in windows

2011-09-03 Thread Brian Meredyk
Massimo, When browsing changesets at http://code.google.com/p/web2py/source/list there doesn't seem to be anything changed in trunk since last night so I don't think the new code has been pushed out yet. On Sat, Sep 3, 2011 at 7:04 PM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > This

Re: [web2py] Re: testing scheduler in windows

2011-09-03 Thread Jonathan Lundell
On Sep 3, 2011, at 2:03 PM, Massimo Di Pierro wrote: > Yes and no. > > The new scheduler uses multiprocessing to make sure each task is > executed in its on process. This allows the main process to monitor > the task and eventually terminate it. It also prevents a task from > messing up the worke

Re: [web2py] Re: testing scheduler in windows

2011-09-02 Thread António Ramos
Sorry i missed the link http://www.youtube.com/watch?v=Y8RRsEkPc_A Em 2 de setembro de 2011 14:30, António Ramos escreveu: > I´m exited about the scheduler because i need it a LOT! > > My opinion about the scheduler importance: > > I think i shoud be as important as view, controllers and models s

Re: [web2py] Re: testing scheduler in windows

2011-09-02 Thread António Ramos
I´m exited about the scheduler because i need it a LOT! My opinion about the scheduler importance: I think i shoud be as important as view, controllers and models so why not include it in the design of the app Models Controllers Views *Tasks* ? Please see a video of how tasks are created in Lot

Re: [web2py] Re: testing scheduler in windows

2011-09-01 Thread Brian M
Isn't that pretty much what we're supposed to be seeing? Every few heartbeats it recognizes a task that needs running, starts it and reports back when complete? C:\Users\Brian\Documents\development\web2py\google hg repo>python trunk/gluon/me ta_scheduler.py thumnew task starting task task st

Re: [web2py] Re: testing scheduler in windows

2011-08-31 Thread Brian Meredyk
no change :( C:\Users\Brian\Documents\development\web2py\google hg repo>python trunk/gluon/me ta_scheduler.py thumnew task starting task Traceback (most recent call last): File "trunk/gluon/meta_scheduler.py", line 139, in MetaScheduler().loop() File "trunk/gluon/meta_scheduler.py", lin

Re: [web2py] Re: testing scheduler in windows

2011-08-31 Thread António Ramos
the -K option is only for 2.6 but with python 2.6 i have that screenshot with error until i break it with ctrl c after that the task runs only the first time and not the other 2 as your demo on Vimeo Thanks 2011/8/31 Massimo Di Pierro > Did the previous version work? > > On Aug 31, 4:11 am, A

Re: [web2py] Re: testing scheduler in windows

2011-08-31 Thread António Ramos
i reported the same problem. Web2py works very well so far except this sheduler. I have windows 7 machine and python 2.6 and 2.7 2011/8/31 Massimo Di Pierro > Do you have these errors only with the scheduler? > Does everything else in web2py works well? > > I am rewriting the scheduler compl

Re: [web2py] Re: testing scheduler in windows

2011-08-29 Thread António Ramos
no error importing platform! I have python2.5 and 2.6 32 bits 2011/8/29 Massimo Di Pierro > Try start python and type: > > >>> import platform > > On Aug 29, 3:43 am, António Ramos wrote: > > Any directions to solve this issue? > > > > i´m installing another machine with windows 7 to try again

Re: [web2py] Re: testing scheduler in windows

2011-08-29 Thread António Ramos
Any directions to solve this issue? i´m installing another machine with windows 7 to try again. Em 24 de agosto de 2011 13:54, António Ramos escreveu: > s 2.6.5 32bits and Windows 7(64Bits)

Re: [web2py] Re: testing scheduler in windows

2011-08-24 Thread António Ramos
i´m running from the command prompt c:\python26_32\python.exe d:\web2pyMercurial\Web2py.py -K a0 Python is 2.6.5 32bits and Windows 7(64Bits) Thank you 2011/8/24 Massimo Di Pierro > It is failing on "import platform" a standard python module. Can you > run it form shell? What windows versio