I have a project where I have supervisor and some workers. But when a worker crashes my supervisor needs to inform some other processes (not those workers) about the crash and what was the reason for it.
So is there a way to catch that signal somehow in supervisor and forward it?
3 Likes
It doesn’t work that way But your other process can just monitor the worker processes, and will receive a 'DOWN'
message when one of them dies, including the exit reason. The only tricky part is to tell your other process what processes it should monitor.
5 Likes