Re: [web2py] scheduling multiple tasks

2016-11-23 Thread Nico de Groot
If you want, pack your app or a example with same behavior using the admin interface as a w2p file and send it to the list. No promises... Nico Op di 22 nov. 2016 om 12:47 schreef Vid Ogris There is no errors, the file is read etc. The task's status is always TIMEOUT, although the first time

Re: [web2py] scheduling multiple tasks

2016-11-23 Thread Vid Ogris
Hello guys. Can somebody please help me with this. I am out of ideas and i need to sort this out. Thank you 2016-11-22 19:47 GMT+08:00 Vid Ogris : > There is no errors, the file is read etc. The task's status is always > TIMEOUT, although the first time I call it is executed correctly. > > Then I

Re: [web2py] scheduling multiple tasks

2016-11-22 Thread Vid Ogris
There is no errors, the file is read etc. The task's status is always TIMEOUT, although the first time I call it is executed correctly. Then I delete the values of the fields the task manipulates with and the second time around values are not inserted and also there is no error or anything in the

Re: [web2py] scheduling multiple tasks

2016-11-20 Thread Nico de Groot
Hi Vid, Two remarks at first sight. In save_outs you initialize the variable now. But you queue the task using start_now. But the task is inserted, maybe just copy paste error in your post... Is the function readOutFile working? Can you show It? It seems it gets stuck when called the second time

Re: [web2py] scheduling multiple tasks

2016-11-18 Thread Vid Ogris
SO the problem continues. The task was running and was completed for some dummy code. Now i have to go trough a folder, read a file and update file content to database. The task always times out and there are two files that need to be updated, non of them are. The code is executed, but there is

Re: [web2py] scheduling multiple tasks

2016-11-15 Thread Dave S
On Tuesday, November 15, 2016 at 2:14:21 AM UTC-8, Yebach wrote: > > Thank you guys. I finally made it. I did not quite understand the whole > scheduler process but i am now getting there. > > Thank you again > > Congratulations! It sometimes takes a while to get the right mental images, doesn

Re: [web2py] scheduling multiple tasks

2016-11-15 Thread Vid Ogris
Thank you guys. I finally made it. I did not quite understand the whole scheduler process but i am now getting there. Thank you again 2016-11-14 2:50 GMT+08:00 Nico de Groot : > Correction: > > Hi Vid, > > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - htt

[web2py] scheduling multiple tasks

2016-11-13 Thread Nico de Groot
Correction: Hi Vid, -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-us

Re: [web2py] scheduling multiple tasks

2016-11-13 Thread Nico de Groot
Hai Dave, I ran your code and checked the field 'traceback' in the table 'scheduler_run' for the failing task. I found: Traceback (most recent call last): > File "/Users/ncdegroot/web2py/gluon/scheduler.py", line 315, in executor > result = dumps(_function(*args, **vars)) > File "applicat

Re: [web2py] scheduling multiple tasks

2016-11-11 Thread Dave S
On Friday, November 11, 2016 at 4:15:46 AM UTC-8, Yebach wrote: > > Ok thanx > > How and where do I add one time controller, or application start? > my task will be executed once per hour > > Was the example I pointed not clear? What questions did you have after reading it? What could I expla

Re: [web2py] scheduling multiple tasks

2016-11-11 Thread Vid Ogris
Ok thanx How and where do I add one time controller, or application start? my task will be executed once per hour 2016-11-11 7:18 GMT+01:00 Nico de Groot : > Looking at your code you posted earlier at http://stackoverflow.com/ > questions/34661782/web2py-function-not-triggered-on- > user-reques

[web2py] scheduling multiple tasks

2016-11-10 Thread Nico de Groot
Looking at your code you posted earlier at http://stackoverflow.com/questions/34661782/web2py-function-not-triggered-on-user-request/34895532#34895532 ou have a task running the engine. This task is scheduled by adding it adding it to the scheduler. You can create a second task and add this task

[web2py] scheduling multiple tasks

2016-11-10 Thread Yebach
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 some background work My code in *scheduler.py* till now was def runWoshiEngine(sc