Closed ingolfured closed 4 years ago
Do you think we have to have another process monitoring the master? Having an additional process in the system might introduce additional uncertainty and potentially flakiness (same kind of multiprocess system issue you are trying to address with this PR).
I am curious, did you consider to make workers terminate themselves. There could be several options, I guess:
Interesting, getting a signal when the parent dies works but only on Linux. Would that be ok? Otherwise, option 2 seems more robust than the solution I proposed
Closed since a better implementation is here: #482
The problem
If you are using Petastorm in process mode and the main process dies unexpectedly, it leaves the workers running until the user manually kills them. In some environments, this can be quite tricky, especially if you don't SSH access to the box.
The solution
I propose a solution where we use a separate process to monitor the main process. If the main process dies unexpectedly, this new process,
ProcessMonitor
sends aFINISHED
message to the alive workers via a new channel.