F1bonacc1 / process-compose

Process Compose is a simple and flexible scheduler and orchestrator to manage non-containerized applications.
https://f1bonacc1.github.io/process-compose/
Apache License 2.0
1.34k stars 52 forks source link

Allow readiness dependencies to wait through process restarts #189

Closed shlevy closed 4 months ago

shlevy commented 6 months ago

Feature Request

Use Case:

In some cases, a failed readiness probe can only be remedied by a restart, but after healthy restart we want downstream processes to get started

Proposed Change:

Add process_healthy_restart_allowed as a dependency condition, then the process will stay in pending until the process it depends on is healthy (even if restarts are needed) or it will be skipped if the dependent process’s max_restarts are met

Who Benefits From The Change(s)?

Those using crash-only designs

Alternative Approaches

Put the process restart into the process script itself, rather than using process-compose’s orchestration

F1bonacc1 commented 5 months ago

Hey @shlevy,

Thanks for reporting this, it should have been the default behavior. I will deliver a fix in the next version.

F1bonacc1 commented 4 months ago

Released in v1.9.0