concurrently
concurrently copied to clipboard
Parallel-serial-parallel flow orchestration?
#419 touches on being able to run two commands within a single parallel step in series, but is orchestrating something like the npm-run-all invocation
npm-run-all --parallel clean:* --serial build:fa --parallel build:css build:js
possible?
I.e.
- run all
cleans in parallel, wait for them to finish - run
build:fa, wait for it to finish - run
build:cssandbuild:jsin parallel, wait for them to finish
That's not possible today with a single concurrently run, but it's an interesting idea.
The --parallel and --serial flag names SGTM too, if someone wants to look into this.
How do you see flags working in such a scenario? Should they apply to the next list of commands found, e.g.
conc -k --parallel "echo foo" "sleep 1 && echo bar" --prefix test --serial "echo baz"
should in this case -k apply only to the first set of commands, and --prefix test to the second set of commands, maybe?