-
Notifications
You must be signed in to change notification settings - Fork 316
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
Hab Supervisor: add a "run a task and then shut down" mode #4676
Comments
Additionally, when the Supervisor shuts down, it should pass the exit code from its child as it's own exit code. |
Just to clarify, do we mean running a "supervisor service" that has an intentionally terminating run hook? Or would this specifically start its own supervisor to run a new "job" primitive? |
@mwrock This would probably be a "run this package until it exits successfully, and then stop". Right now, the Supervisor will continually restart a service if it exits successfully. This also would mean that the things the Supervisor can run now are not necessarily "services" (i.e., long running daemon-like processes), but also "jobs". |
ok that makes sense. I love the idea. I have had a couple times where I thought a |
👍 |
Perhaps there should be a flag that user can set |
@bdangit Agreed; we can probably take some inspiration from Erlang supervisor restart strategies:
|
Confirmed valid in v0.57 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. We value your input and contribution. Please leave a comment if this issue still affects you. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. We value your input and contribution. Please leave a comment if this issue still affects you. |
1 similar comment
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. We value your input and contribution. Please leave a comment if this issue still affects you. |
We should add the ability for the Habitat Supervisor to start up, run a job, and then exit and shut down.
This has come up in a couple different scenarios, including build jobs in a Jenkins/Concourse pipeline and running as a test scenario in a High Performance Computing (HPC) cluster with Singularity.
The text was updated successfully, but these errors were encountered: