How does poolex handle worker crashes? #131
-
I was reading through the documentation, and it's not clear to me how Poolex handles crashed workers (unhandled exception in the worker process). I'm still fairly new to Elixir, and I have a feeling this would be obvious if I was more familiar with supervisor trees. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi, @aidalgol! When I launch the worker process, I use the Here is the function that uses You can read about |
Beta Was this translation helpful? Give feedback.
Hi, @aidalgol!
When I launch the worker process, I use the
Process.monitor
functions to know if it fails.Here is the function that uses
Monitoring.add
, and here usesProcess.monitor
.The
{:DOWN
message will come to the main Poolex's process when something goes wrong.You can read about
Process.monitor
function here.