Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

parallel execution of multitask items #527

geddski opened this Issue Nov 15, 2012 · 4 comments


None yet
5 participants

geddski commented Nov 15, 2012

While converting Angular from Rake to Grunt I found the need to minify all the files in parallel rather than serially. I did this by making a custom task that uses async#forEach, calling this.async() when all the items have finished. Making Angular's minall task run in parallel reduced its run time significantly.

Executing multitask items in parallel could speed up many common use cases: Compiling stylus/sass/less files into CSS, concatenating JS files, minification, etc.

What do you think of something like this:

minify: {
  parallel: true,

That flag would instruct grunt to use async#forEach


rgaskill commented Dec 3, 2012


I have a similar situation where for convenience I am starting multiple dev servers with a single task by running grunt.util.spawn in parallel.


tkellen commented Dec 7, 2012

Closing this and making a note in the wiki for 0.5 features.

@tkellen tkellen closed this Dec 7, 2012


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment