inaka / worker_pool

Erlang worker pool
https://hex.pm/packages/worker_pool
Apache License 2.0
276 stars 80 forks source link

add/delete workers from an active pool? #129

Open JrIndie opened 7 years ago

JrIndie commented 7 years ago

I was wondering if this was possible and maybe I am missing it? Or any plans on doing this? What would be required to do this? It would be helpful for growing certain worker pools based on some external number that grows/shrinks dynamically (like connections).

elbrujohalcon commented 7 years ago

Hi @JrIndie. It's not possible at the moment, but we'll gladly accept a PR with it provided it has sufficient tests and works smoothly for all strategies ;) In other words: it's certainly not easy to implement, but if you manage to do it, please send a PR :)