hivemind icon indicating copy to clipboard operation
hivemind copied to clipboard

return first exited process exit code

Open corpix opened this issue 8 months ago • 0 comments

This patch enhances existing "fail-fast" behavior. While hivemind already exits when the first process terminates, this change ensures hivemind own exit code mirrors that of the first process to finish.

My main motivation is: I use hivemind in CI workflows to start multiple parallel processes, it is crucial to know if a group of processes finished successfully or with error. I am aware of this PR https://github.com/DarthSim/hivemind/pull/39, but it has different semantics, suggesting highest exit code instead of exit code of first finished process.

corpix avatar Apr 14 '25 19:04 corpix