On Wed, Jul 16, 2008 at 2:57 PM, Michelle Li
<rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:>
> I''m using BackgrounDRb and according to the API I should be able
to use
> methods such as delete_worker() and send_request(). However when I try
> to invoke these methods on my workers I get undefined method errors:
>
> NoMethodError: undefined method `ask_work'' for
> #<BackgrounDRb::ClusterConnection:0xb7460304>
I am terribly sorry for this, but bdrb client API has changed slightly
and in fact, its always best idea to refer official docs at:
http://backgroundrb.rubyforge.org
and RDoc manual thats linked there, as I mentioned in my previous
mail. Blog posts(including mine) and screencasts sometimes go out of
date with programming libraries.
In word, ask_work is no longer exposed to rails and if you want to
invoke a method, you will have to use:
#for async calls
MiddleMan.worker(:foo_worker).async_some_task(:arg => "foobar")
# for blocking/sync calls
MiddleMan.worker(:foo_worker).some_task(:arg => "foobar")
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---