inaka / worker_pool

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

Add config options pool_sup_intensity and pool_sup_period #65

Closed waisbrot closed 8 years ago

waisbrot commented 8 years ago

Options for altering the period and intensity of the wpool_pool supervisor.

Changed the README to include these two options and the strategy option that was already available.

Fixes #64

Comments on the option names or the README doc, @elbrujohalcon ?

elbrujohalcon commented 8 years ago

I like what you did, @waisbrot . Any chance you can add a test case for this?

waisbrot commented 8 years ago

Sure, I'll try adding some tests.

waisbrot commented 8 years ago

I've added a pair of tests for this that are working for me. I don't know Common Test all that well, so I'm not sure how to properly clean up the pools I make.

I can squish these commits down once you like them (unless you like 'em unsquished).

waisbrot commented 8 years ago

I've broken up the long lines.

elbrujohalcon commented 8 years ago

Thanks, @waisbrot :)