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

Only the first command runs with --kill-others -m 1 flags in v9 #515

Open
quantuminformation opened this issue Nov 8, 2024 · 1 comment

Comments

@quantuminformation
Copy link

node v22.10.0, mac OS 15/0/1, "concurrently": "^9.1.0",

when running "test": "concurrently --kill-others -m 1 -c auto pnpm:lint pnpm:test:unit pnpm:typecheck",
only the lint command works
when moving back to v 8 they all run as expected

@gustavohenke gustavohenke added bug and removed bug labels Nov 9, 2024
@gustavohenke
Copy link
Member

Hey.
I had tagged this as a bug, but I remembered it's a different behaviour that I forgot to call out as a breaking change in https://github.com/open-cli-tools/concurrently/releases/tag/v9.0.0. It's related to the usage of the --max-processes/-m flag there.

#433 (comment) explains the thought process.

With the above in mind, I wanted to point out that --kill-others + --max-processes 1 might not make much sense together, but maybe I'm missing your intention with this flag combo.
Did you mean to use --kill-others-on-fail instead? It'd mean something like "don't try running other commands as one of the others is broken anyway".

@gustavohenke gustavohenke changed the title Upgrading from 8 to 9, only the first command runs Only the first command runs with --kill-others -m 1 flags in v9 Nov 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants