Closed ElectronicRU closed 7 years ago
Fair point. wpool should deal with unefined
being the result of erlang:whereis/1
. Thanks for spotting this, @ElectronicRU :)
https://github.com/inaka/worker_pool/blob/master/src/wpool_pool.erl#L223 this is another potentially problematic place
In particular, the following code:
in wpool_pool.erl fails if the worker is restarting, whether for valid or invalid reasons.
The dead workers aren't handled in any strategy, though; they're just assumed to be always alive. That's a shame since {stop, ...} tuples appear to be handled on the surface.