[Backgroundrb-devel] Invalid worker with name...
Sam Hendley
sam.hendley at plymouthsystems.com
Wed Sep 10 10:00:25 EDT 2008
Hello all, I have been researching background processing options and I
think BackgroundDRb is a good fit for our project.
I set up a test project to play around and prototype the behavior I want
but I ran into the same problem as Reynard. I created a skeleton worker
using the generator and I am trying to call a test function on the
worker. (basically following the tutorial)
Here's the code I'm trying to run:
>> MiddleMan.new_worker(:worker => :upload_worker, :worker_key =>
:test_key)
=> "work"
>> MiddleMan.worker(:upload_worker, :test_key).upload()
=> nil
And heres what I see in the logs:
Invalid worker with name upload_worker_test_work and key test_work
/usr/lib/ruby/gems/1.8/gems/packet-0.1.13/lib/packet/packet_connection.r
b:52:in `ask_worker'
/home/sam/bdb_test/vendor/plugins/backgroundrb/server/lib/master_worker.
rb:103:in `async_method_invoke'
/home/sam/bdb_test/vendor/plugins/backgroundrb/server/lib/master_worker.
rb:37:in `receive_data'
/usr/lib/ruby/gems/1.8/gems/packet-0.1.13/lib/packet/packet_parser.rb:44
:in `extract'
/usr/lib/ruby/gems/1.8/gems/packet-0.1.13/lib/packet/packet_parser.rb:26
:in `loop'
/usr/lib/ruby/gems/1.8/gems/packet-0.1.13/lib/packet/packet_parser.rb:26
:in `extract'
/home/sam/bdb_test/vendor/plugins/backgroundrb/server/lib/master_worker.
rb:32:in `receive_data'
/usr/lib/ruby/gems/1.8/gems/packet-0.1.13/lib/packet/packet_core.rb:232:
in `read_external_socket'
/usr/lib/ruby/gems/1.8/gems/packet-0.1.13/lib/packet/packet_core.rb:222:
in `handle_external_messages'
/usr/lib/ruby/gems/1.8/gems/packet-0.1.13/lib/packet/packet_core.rb:196:
in `handle_read_event'
/usr/lib/ruby/gems/1.8/gems/packet-0.1.13/lib/packet/packet_core.rb:192:
in `each'
/usr/lib/ruby/gems/1.8/gems/packet-0.1.13/lib/packet/packet_core.rb:192:
in `handle_read_event'
/usr/lib/ruby/gems/1.8/gems/packet-0.1.13/lib/packet/packet_core.rb:146:
in `start_reactor'
/usr/lib/ruby/gems/1.8/gems/packet-0.1.13/lib/packet/packet_core.rb:139:
in `loop'
/usr/lib/ruby/gems/1.8/gems/packet-0.1.13/lib/packet/packet_core.rb:139:
in `start_reactor'
/usr/lib/ruby/gems/1.8/gems/packet-0.1.13/lib/packet/packet_master.rb:21
:in `run'
/home/sam/bdb_test/vendor/plugins/backgroundrb/server/lib/master_proxy.r
b:14:in `initialize'
script/backgroundrb:46:in `new'
script/backgroundrb:46
Reynard did you ever solve this problem? It must be something basic I am
missing can anyone point me in the right direction?
Thanks
Sam Hendley
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20080910/ef070df2/attachment-0001.html>
More information about the Backgroundrb-devel
mailing list