jakejs/jake — pull request #264 by veldsla (2014-07-01 15:46:34+00:00)
Title: Parallel prerequisites Comments please

We use jake to run and chain long running shell jobs and require many parallel processes to optimally use the server. We use functions that generate many jake file tasks to use as prerequisites and it would be great if those tasks run in parallel

This is an attempt to run the dependencies of a task in parallel. It uses caolan/async to run and limit the amount of simultaneous tasks. We needed to mess a bit with the invocationChain to accommodate this. It really requires an api change regarding the global complete function although it is currently backwards compatible as long as you don't use runparallel.

Would you be interested in a feature like this? Do you have any suggestions for improvement? We created an example jakefile here https://gist.github.com/veldsla/7d08c36ef30a504c91e0#file-jakepartest