-
-
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
Start/Restart action should start depended on disabled services #44
Comments
Hi @thenonameguy, Makes sense. Will look into it. |
Hi @thenonameguy, I tried to reconstruct your scenario and here is what I found:
TL;DR A will run even if it depends on B to be healthy, but B is disabled. Now I am trying to understand how your configuration is different from mine, that it caused it to wait for B (kafka or sftp) to run, even if B is disabled. On another topic: Will be happy to hear your thoughts. |
It would be nice if we can add a flag in the process configuration to allow dependent processes to start automatically or at least wait for the dependent process to start. |
Hi @camcalaquian, Consider the following processes:
A:
command: "sleep 5"
depends_on:
B:
condition: <condition>
B:
command: "sleep 5" Process // ProcessConditionCompleted is the type for waiting until a process has completed (any exit code).
ProcessConditionCompleted = "process_completed"
// ProcessConditionCompletedSuccessfully is the type for waiting until a process has completed successfully (exit code 0).
ProcessConditionCompletedSuccessfully = "process_completed_successfully"
// ProcessConditionHealthy is the type for waiting until a process is healthy.
ProcessConditionHealthy = "process_healthy"
// ProcessConditionStarted is the type for waiting until a process has started (default).
ProcessConditionStarted = "process_started" |
I think there should definitely be an option to start with deps, but default should be without. There could also be flags at top level, and at process level, to set the default behaviour. |
@F1bonacc1 don't think this works if process is disabled by default. Which is the main concern of this issue I think? |
There are several alternatives to consider (not sure which one is the desired behavior):
|
If you have a service config like:
for a seldomly used subset of your system (therefore using
disabled: true
for both the service and it's dependencies (kafka
andsftp
)) currently starting/restarting the service does not visually do anything.Expectation: start
sftp
/kafka
so thedepends_on
conditions have a chance to be met.The text was updated successfully, but these errors were encountered: