Thank you very much these details. 2012/8/24 Niphlod <[email protected]>
> >> - Then I have tried to add a scheduler to an existing application. >> The worker shows it's heartbeat, but does not pick up any task, What could >> be wrong? >> >> Depends on many factors...let's start to say: how did you add the tasks ? > >> >> - What is the best way to start both (scheduler and other >> application) in Linux and in Windows? >> python web2py.py myapp -K myscheduler is the wrong way >> >> I have added a new record using the admin application. In the meantime I have written a function to insert a new task - same result, the worker does not pick it up. Scheduler is meant to work as a separate process. Ideally you'd have to > start the webserver in the usual way (web2py.py -a 'yourpass') and the > scheduler in a separate terminal/dos shell (web2py.py -K myapp) . Trunk > permits to have ~the same behaviour with web2py.py -a 'yourpass' -K myapp > -X: this will start the webserver and in a separate process the scheduler. > The "-X" sounds good! I have tried it (Windows 7-environment). Should there be a message like "Currenty running 1 scheduler processes" ? This message does not appear with "-X". > BTW: at https://github.com/niphlod/w2p_scheduler_tests there is a > complete demo app on scheduler, how it works and how to use it. > > That is very good - sorry, I did not find it before. I have tried to load this application as git repo ("can be a git repo") but I got: <type 'exceptions.NameError'> global name 'GitCommandError' is not defined I have posted this in another thread. Regards Martin --

