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

cmd: teach garden to run commands in parallel #45

Merged
merged 3 commits into from
Sep 27, 2024
Merged

cmd: teach garden to run commands in parallel #45

merged 3 commits into from
Sep 27, 2024

Conversation

davvid
Copy link
Member

@davvid davvid commented Sep 27, 2024

No description provided.

"garden cmd" and custom commands can now run multiple commands in
parallel using rayon.

Garden will  use all available cores when "--jobs=0" is used.
The paradigm we are using is that the ApplicationContext must
be cloned per-thread in order to allow concurrent evaluation.

Closes: #43
Suggested-by: Johannes Rueschel @chbndrhnns on github.com
Default to "--jobs=0" (all cores) when only "-j" is specified.
This makes the "-j" option behavior more closely to "make".
@davvid davvid mentioned this pull request Sep 27, 2024
@davvid davvid merged commit 09c77c4 into main Sep 27, 2024
16 checks passed
@davvid davvid deleted the parallel branch September 27, 2024 05:25
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

Successfully merging this pull request may close these issues.

1 participant