Yesh, I prolly forgot to mention my scheduled tasks are all in modules. That limits me to the thread-local vars and scheduler isn't one of those!
-- Joe On Monday, August 12, 2013 11:09:45 AM UTC-7, Niphlod wrote: > > it's really strange that you can't access the scheduler while being able > to access the scheduler tables...they are defined in the scheduler ^___^ > However, it's another good practice, assuming you have a 1:1 depending > tasks. > > On Monday, August 12, 2013 7:51:57 PM UTC+2, Joe Barnhart wrote: >> >> I have a similar situation. I have one task that, when it runs, it >> inserts other tasks. So if task B depends on task A, I have task A insert >> the task B information into the scheduler just as it finishes. The >> "scheduler" object itself is not present, so I insert the tasks into the >> scheduler_task table using a db insert. >> >> -- Joe >> >> On Monday, August 12, 2013 3:07:02 AM UTC-7, D. wrote: >>> >>> Dear community, >>> >>> in my app, users can chose from a list of different calculations to be >>> run on a given set of data. Normally the order of those calculation is >>> irrelevant and I just schedule all of the selected to be run by a pool of >>> workers. >>> >>> However, I also need an option to specify that a certain calculation has >>> to wait until another is finished and use the results of the former as >>> starting parameters. >>> >>> Is there an easy way of scheduling a task i.e. as "PAUSED" and as soon >>> as soon as the task it waits for completes, change it's parameters to the >>> return-values of the former and queue it regularly? >>> >>> I probably need an extra background-task on a seperate worker to keep >>> track of the task-stati...or is there anything built into web2py like this >>> already? >>> >>> Best regards, >>> Dan. >>> >> -- --- 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 [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

