concurrently
concurrently copied to clipboard
--kill-others should work with --success
- Description: Using --kill-others to top a process causes it to exit with a non zero exit code. --success specifies that if one process exits cleanly, then concurrently should exit cleanly. It does not.
- Expected Behavior: concurrently should exit with code 0
- Environment: MacOS
- Reproduction: concurrently --kill-others -s last "process-that-doesnt-exit" "tests-that-exit-cleanly"
I have a similar issue I believe
I am using the package to run my integration tests. It does two things
- start the webpack dev server
- run the jest tests against it
Tests run successfully and exit with 0, that in turn triggers the SIGTERM being sent to other processes (as shown in the logs) but the exit code sent to the process on windows is 1 while it is SIGTERM on mac.
We rely on SIGTERM to do some clean-up but because of the way it exits right now, we are unable to do so only on windows.
On Windows -
On Mac -
- Reproduction: concurrently --kill-others -s last "process-that-doesnt-exit" "tests-that-exit-cleanly"
I could suggest trying to change "last" to "first".
@andy265 it's not working. @dmidnight Is there any update on this issue?
What @andy265 said is right. --success last
refers to the last command to exit, not the last listed command.
@HoneyQumo can you provide any details about what's not working? If I don't have reproduction steps, I can't help.
@40x it might be better to open a new issue for your use case. Windows wouldn't have signals, and so tailoring the experience for "exit code 1, but because it was 'interrupted'" is not possible; the process could have sent a different code.
What @andy265 said is right.
--success last
refers to the last command to exit, not the last listed command.@HoneyQumo can you provide any details about what's not working? If I don't have reproduction steps, I can't help.
Just a suggestion, complement the documentation with this observation. The description of param are not clear and there are no examples to --success param.