Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend deps: to allow for multiple "pipelines", that run their commands in parallel #12

Open
skaldesh opened this issue Apr 2, 2024 · 0 comments

Comments

@skaldesh
Copy link
Member

skaldesh commented Apr 2, 2024

Imagine this current grml command:

...
build:
  help: build everything
  deps:
    - targetA
    - targetB.1
    - targetB.2
    - targetC
    - targetD
...

This is possible with the current stucture and would run the commands sequentially in the given order.
But it would be desirable to run commands that do not depend on each other in parallel.

Let's say, that targetA must be built before everything else, and targetB.1 must be built before targetB.2.
The following execution would be optimal:

> start targetA
< wait until finished (abort if failed)
> start targetB.1
> start targetC
> start targetD
< wait until targetB.1 finished (abort if failed)
> start targetB.2
< wait until all finished (abort if failed)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant