until now no request for a feature like "task dependancies" has been raised. I usually deal with "the issue" with an additional task that "drives" all the others. Basically you need to schedule all your tasks with enabled=False and then use the "boss" task to update with enabled=True only the ones you'd like to run.
Let's assume you have 100 tasks that can run in parallel and without any particular order preference, and call them "task_parallel". Then let's assume you have a single task that can run only if those 100 tasks have been completed yet, and call it "task_after_all". You should schedule all your 100 tasks with e.g. a task_name as "task_parallel:run1" with enabled=True, and the "task_after_all:run1" with enabled=False. Then you schedule a "boss" task (repeat=0, period=60) that counts how many tasks with status=COMPLETED and task_name="task_parallel:run1" are in the scheduler_task table. If those are 100, then you update the task task_name = "task_after_all:run1" with enabled=True and you delete the "boss" task. Il giorno lunedì 12 agosto 2013 12:07:02 UTC+2, D. ha scritto: > > 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.

