[Backgroundrb-devel] Invalid worker with name ...

Reynard reynard.list at gmail.com
Thu Sep 4 15:24:15 EDT 2008


when trying this out using the latest from svn or git:

MiddleMan.worker(:testa_worker).async_test()

---
class TestaWorker < BackgrounDRb::MetaWorker
  set_worker_name :testa_worker

  def create(args = nil)
  end

  def test
    logger.info "sleep"
    sleep(5)
    logger.info "wake up"
  end
end
---


I get this error:

Invalid worker with name testa_worker and key
/usr/lib/ruby/gems/1.8/gems/packet-0.1.12/lib/packet/packet_connection.rb:52:in
`ask_worker'
/home/reynard/opt/aptana/workspace/test/vendor/plugins/backgroundrb/server/lib/master_worker.rb:103:in
`async_method_invoke'
/home/reynard/opt/aptana/workspace/test/vendor/plugins/backgroundrb/server/lib/master_worker.rb:37:in
`receive_data'
/usr/lib/ruby/gems/1.8/gems/packet-0.1.12/lib/packet/packet_parser.rb:44:in
`extract'
/usr/lib/ruby/gems/1.8/gems/packet-0.1.12/lib/packet/packet_parser.rb:26:in
`loop'
/usr/lib/ruby/gems/1.8/gems/packet-0.1.12/lib/packet/packet_parser.rb:26:in
`extract'
/home/reynard/opt/aptana/workspace/test/vendor/plugins/backgroundrb/server/lib/master_worker.rb:32:in
`receive_data'
/usr/lib/ruby/gems/1.8/gems/packet-0.1.12/lib/packet/packet_core.rb:232:in
`read_external_socket'
/usr/lib/ruby/gems/1.8/gems/packet-0.1.12/lib/packet/packet_core.rb:222:in
`handle_external_messages'
/usr/lib/ruby/gems/1.8/gems/packet-0.1.12/lib/packet/packet_core.rb:196:in
`handle_read_event'
/usr/lib/ruby/gems/1.8/gems/packet-0.1.12/lib/packet/packet_core.rb:192:in
`each'
/usr/lib/ruby/gems/1.8/gems/packet-0.1.12/lib/packet/packet_core.rb:192:in
`handle_read_event'
/usr/lib/ruby/gems/1.8/gems/packet-0.1.12/lib/packet/packet_core.rb:146:in
`start_reactor'
/usr/lib/ruby/gems/1.8/gems/packet-0.1.12/lib/packet/packet_core.rb:139:in
`loop'
/usr/lib/ruby/gems/1.8/gems/packet-0.1.12/lib/packet/packet_core.rb:139:in
`start_reactor'
/usr/lib/ruby/gems/1.8/gems/packet-0.1.12/lib/packet/packet_master.rb:21:in
`run'
/home/reynard/opt/aptana/workspace/test/vendor/plugins/backgroundrb/server/lib/master_proxy.rb:14:in
`initialize'
script/backgroundrb:46:in `new'
script/backgroundrb:46
Client disconected

----
I'm just using the example from the website.
did I miss something?

oh btw, using 1.0.3, I get undefined method async_test. I suppose that's new
in 1.0.4?


- reynard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20080904/707160d0/attachment-0001.html>


More information about the Backgroundrb-devel mailing list