concurrently icon indicating copy to clipboard operation
concurrently copied to clipboard

Parallel-serial-parallel flow orchestration?

Open akx opened this issue 1 year ago • 1 comments

#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:css and build:js in parallel, wait for them to finish

akx avatar May 15 '24 14:05 akx

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?

gustavohenke avatar May 18 '24 04:05 gustavohenke