-
-
Notifications
You must be signed in to change notification settings - Fork 53
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
Should process-compose up [disabled-proc]
start the process?
#266
Comments
Hi @smeijer, It is possible to make the disabled processes start if explicitly specified, but this creates a list of other unexpected scenarios:
Possible solutions:
What do you think will work best for the majority of the users? |
Re the first unexpected case
I'd expect both A and B, and any process A and B depend on, to be started. If the user only wants to start A when it's needed, then it should be a dependency of B, and they should run
What's the usecase of starting a process but not it's dependencies? Is that currently possible? Same with start order. I would find it confusing if start order was determined by my flags to Re solutions
Don't get me wrong. I'm not against any of the suggestions, and don't mean to sound negative, because I'm not. I just don't see them as an option for the average user. The usecase is that we have a process-compose.yml in the root of our project, and we have various services/processes. Some of them, like the nextjs app that runs our docs, don't need to run every day. We only need that service when working on the docs. So while an override would work, it feels cumbersome. The intention of this ticket wasn't a future request. I think if you say that it works as designed, we can close this ticket, as the current overrides would then cover it. Completely separate of the current |
I agree that from UX POV, for this specific use case, the best option would be to call
Consider the following use case: version: "0.5"
processes:
disabled_A:
command: "run long CPP compilation"
disabled: true
enabled_B:
command: "run the compiled CPP process" With TUI or CLI you can interact, debug B, and only trigger its recompilation when needed. Usually one would run B without A. But A is nice to have in TUI to trigger when needed.
It's possible with the
Agreed, I should have added option 0 - running PC up with a list of process names would start them, even if disabled. |
Added in v1.40.0 |
Sweet. Thanks! |
I'm not sure if this is a bug, a feature request, or just misunderstood on my side, but let's assume I have a disabled process.
As intended, that process will not auto-start when running
process-compose up
. However, it will also not start when runningprocess-compose up my-disabled-process
. That last one is unexpected for me, as I now don't seem to have a (nice) way to run just that single process.There is a workaround: run
process-compose up my-disabled-process —-keep-tui
, select the process, and start it using F7. But I guess there has to be a better way.TDLR: Should
process-compose up [disabled-proc]
start the the process even if it's been disabled, or is there another way prevent processes from auto starting onprocess-compose up
?The text was updated successfully, but these errors were encountered: