#2 Add <forall> task: parallel foreach

closed
nobody
None
5
2011-09-29
2008-12-02
Austin Hastings
No

The current behavior of foreach is sequential. With a parallel inner block, some basic parallelism can be added.

I'm in a situation where I have some fixed and some list jobs, and I want to execute all the jobs in parallel.

I'd like to see something like:

<parallel>
<run job="${job1}" />
<forall ...>
<child>
<run job="${job-parallel}" ... />
</child>
</forall>
</parallel>

With the result that job-parallel and job1 would be in parallel with each other, and possibly with 'n' other job-parallel instances.

Discussion

  • Rob Gordon
    Rob Gordon
    2011-09-29

    Foreach now supports parallel execution.

     
  • Rob Gordon
    Rob Gordon
    2011-09-29

    • status: open --> closed