Re: [web2py] Re: scheduling multiple tasks

2016-11-11 Thread Vid Ogris
The runWoshiEngine is started on user request. I have to get another one working like every hour after the app was started. Call it saveIdOut in scheduler.py from gluon.scheduler import Scheduler def runWoshiEngine(scriptId, path): # import os, sys # import time import subprocess

[web2py] Re: scheduling multiple tasks

2016-11-11 Thread 黄祥
pls try : (you can improve it to another queue task by define another function in controller) *controllers/default.py* """ for running scheduler python web2py.py --nogui --no-banner -K woshiweb -D 0 1 hour = 3600 seconds # for period 10 minutes = 600 seconds # for timeout """ start_now = datetim

[web2py] Re: scheduling multiple tasks

2016-11-10 Thread Dave S
On Thursday, November 10, 2016 at 5:07:16 AM UTC-8, Yebach wrote: > > Hello > > > In my web2py app i am using scheduler. So far I have one task scheduled > which runs a subprocess when called from controler (an external exe > file/application) > > Now i want to add another task which will do so