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.

