nickstenning / honcho

Honcho: a python clone of Foreman. For managing Procfile-based applications.
http://pypi.python.org/pypi/honcho
MIT License
1.6k stars 146 forks source link

[Question] Processes Lifecycycle #175

Closed kuraga closed 8 years ago

kuraga commented 8 years ago

Good day!

I started 3 processes. And due to log, two others got SIGTERM in the next moment after first process finished.

So, Honcho waits one process only? Thanks.

nickstenning commented 8 years ago

Honcho is intended for supervising/orchestrating long-running processes like web application servers or job workers. So yes, Honcho will exit and terminate other processes if one exits. This is intended behaviour.

gowhari commented 1 year ago

I could find it in the API doc:

If one process terminates, all the others will be terminated by Honcho, and loop() will return.

Normally, a supervising system would attempt to restart the terminated process rather than terminating all other processes, or at least some systems operate that way. It was confusing for me that what's happening at the beginning.

However, since Honcho follows this approach, it would be beneficial to emphasize it in the introductory section of the documentation.