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

Commits on Sep 19, 2024

  1. Configuration menu
    Copy the full SHA
    d0792bd View commit details
    Browse the repository at this point in the history

Commits on Sep 27, 2024

  1. cmd: teach garden to run commands in parallel

    "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
    davvid committed Sep 27, 2024
    Configuration menu
    Copy the full SHA
    c105077 View commit details
    Browse the repository at this point in the history
  2. cmd: allow "-j" / "--jobs" to take zero arguments

    Default to "--jobs=0" (all cores) when only "-j" is specified.
    This makes the "-j" option behavior more closely to "make".
    davvid committed Sep 27, 2024
    Configuration menu
    Copy the full SHA
    47990d6 View commit details
    Browse the repository at this point in the history