question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`--success last` does not work while `--success first` does

See original GitHub issue

Expectation Switching the order of two commands while simultaneously switching from --success last to --success first should not change the exit status of concurrently

Observed behaviour --success last does not work as expected when used together with --kill-others

Version 4.1.0

Steps to reproduce Take two commands: sleep 5; exit 0; and sleep 100, and switch their order. With --success first works correctly:

$> concurrently --kill-others --success first 'sleep 5; exit 0;' 'sleep 100'
[0] sleep 5; exit 0; exited with code 0
--> Sending SIGTERM to other processes..
[1] sleep 100 exited with code SIGTERM
$> echo $?
0

With --success last works incorrectly (expected to get exit code 0 same as above):

$> concurrently --kill-others --success last 'sleep 100' 'sleep 5; exit 0;'
[1] sleep 5; exit 0; exited with code 0
--> Sending SIGTERM to other processes..
[0] sleep 100 exited with code SIGTERM
$> echo $?
1

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:15 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
paescujcommented, May 20, 2022

Implemented by #318 which has been released in v7.2.0.

1reaction
gustavohenkecommented, Jun 29, 2019

Does the above help anyone? 🙂

Read more comments on GitHub >

github_iconTop Results From Across the Web

30 Powerful Success and Failure Quotes That Will Lead You ...
3. “You always pass failure on your way to success.” -Mickey Rooney. In today's competitive world, it's hard to understand that almost no...
Read more >
65 Inspirational Quotes About Success at Work | Indeed.com
“You don't have to be great to start, but you have to start to be great.” — Zig Ziglar. “The first step toward...
Read more >
Why Do Some People Succeed after Failing, While Others ...
A growing body of research supports the idea that failure can make you better off in the long run. Indeed, in another recent...
Read more >
70 Quotes About Hard Work That'll Help You Reach Your Goals
5. "Success is no accident. It is hard work, perseverance, learning, studying, sacrifice and most of all, love of what you are doing...
Read more >
10 inspirational quotes about hard work - The Predictive Index
1. "There are no secrets to success. It is the result of preparation, hard work, learning from failure." – General Colin Powell2. “ ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found