-
-
Notifications
You must be signed in to change notification settings - Fork 51
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
Stopping multiple processes should not fail fast #199
Comments
Hi @zmitchell, Let's say there are 2 processes
|
I think you should not run the command at all if you can tell that |
That eliminates a lot of the ambiguity that prompted this issue. Regardless, to answer your questions:
If you wanted more concise output you could do:
or
I think if I have 20 bad processes, that's something I want to know about, and furthermore if 19 of them are bad for one reason and 1 of them is bad for another reason, that's also something I want to know about.
|
Added in v1.18.0 Cheers ✌🏻 |
Feature Request
When stopping more than one process, all processes that can be stopped should be stopped, regardless of whether there is an error stopping another process.
Use Case:
For the sake of discussion, assume "bad" means a process either never existed or is no longer running.
Right now if you attempt to stop multiple processes and one of them is bad, the processes that actually get stopped depend on the order in which the processes are passed to
process-compose
. This is a surprising behavior, and we should aim for the least surprising behavior.Proposed Change:
When stopping multiple processes, attempt to stop all of them before handling any errors. Some of the errors a user will encounter can be caught before stopping any processes e.g. you can check whether a process exists or whether it's running before trying to stop it, but there may be some errors that can only be caught while trying to stop the process. In that case you can't "unstop" the process and undo the the user's requested operation. In that case it's best to attempt to complete as much of it as possible and inform them of the error.
Who Benefits From The Change(s)?
Everyone
Alternative Approaches
The text was updated successfully, but these errors were encountered: