I was relying on Celluloid::Pool to manage a max allowed number of
actors of particular class, where each actor would process a unique
message ie:
Celluloid::Pool.supervise_as :name, MyActorClass, :max_size => 5
%w[param1 param2 param3].each {|p|
Celluloid::Actor[:name].get.do_something!(p)}
will spawn 3 actors to complete the iteration.
According to my understanding, the new Celluloid::PoolManager will
execute a method against all workers at once, ie:
Celluloid::PoolManager.supervise_as :name, MyActorClass, :size => 5
%w[param1 param2 param3].each {|p|
Celluloid::Actor[:name].do_something!(p)}
will spawn 5 actors for each array element.
It's a great feature to have indeed and it makes a lot of sense.
I ask advise about my particular case - How to reimplement the same
basic idea using new PoolManager.
Usually, i know that if something doesn't do what i expect from it,
it's me doing something wrong or having a wrong concept to begin with,
but seeing how this project is young and in constant flux, i am
wondering if perhaps my input could generate some useful features for
the future.
On May 27, 9:24 pm, Tony Arcieri <
tony.arci...@gmail.com> wrote:
> Also note I'm removing the old Celluloid::Pool API in the next release.
> Celluloid.pool should hopefully be the final form:
>
>
https://github.com/celluloid/celluloid/commit/9a8e779196267483b860120...
>
> On Sun, May 27, 2012 at 12:21 PM, Tony Arcieri <
tony.arci...@gmail.com>wrote:
>
>
>
>
>
>
>
>
>
> > Heads up, I made this change on master:
>
> >
https://github.com/celluloid/celluloid/commit/d63fb4141915d6a0e68fbe5...
>
> > On Wed, May 23, 2012 at 7:59 AM, Sean McKibben <
grap...@graphex.com>wrote:
>
> >> I hear ya Jonathan! I also have to use sidekiq too... Thank goodness for
> >> BUNDLE_GEMFILE...
>
> >> Can't wait until this gets to gem land.
>
> >> Thanks Tony!
>
> >> Sean
>
> >> On May 23, 2012, at 8:40 AM, Tony Arcieri wrote:
>
> >> I've been wanting to get another release of Celluloid pushed out, but
> >> have been really busy lately. Hopefully this weekend!
>