[Backgroundrb-devel] Worker won't start work

Chris H chris at etechdata.com.au
Thu Nov 30 21:52:27 EST 2006


(Sorry my last email had the wrong subject)

Hi,

I've just installed background rb 0.2.1.

When I try start a worker in my application controller I receive the 
following error:


wrong number of arguments (2 for 1) - (ArgumentError)
/home/chris/projects/call_manager/trunk/call_manager_app/vendor/plugins/backgroundrb/server/lib/backgroundrb/middleman.rb:211:in 
`initialize'
/home/chris/projects/call_manager/trunk/call_manager_app/vendor/plugins/backgroundrb/server/lib/backgroundrb/middleman.rb:211:in 
`new_worker'
/home/chris/projects/call_manager/trunk/call_manager_app/vendor/plugins/backgroundrb/server/lib/backgroundrb/thread_pool.rb:36:in 
`dispatch'
/home/chris/projects/call_manager/trunk/call_manager_app/vendor/plugins/backgroundrb/server/lib/backgroundrb/thread_pool.rb:22:in 
`dispatch'
/home/chris/projects/call_manager/trunk/call_manager_app/vendor/plugins/backgroundrb/server/lib/backgroundrb/middleman.rb:199:in 
`new_worker'
/usr/local/lib/ruby/1.8/drb/drb.rb:1552:in `perform_without_block'
/usr/local/lib/ruby/1.8/drb/drb.rb:1512:in `perform'
/usr/local/lib/ruby/1.8/drb/drb.rb:1586:in `main_loop'
/usr/local/lib/ruby/1.8/drb/drb.rb:1582:in `main_loop'
/usr/local/lib/ruby/1.8/drb/drb.rb:1578:in `main_loop'
/usr/local/lib/ruby/1.8/drb/drb.rb:1427:in `run'
/usr/local/lib/ruby/1.8/drb/drb.rb:1424:in `run'
/usr/local/lib/ruby/1.8/drb/drb.rb:1344:in `initialize'
/usr/local/lib/ruby/1.8/drb/drb.rb:1624:in `start_service'
/home/chris/projects/call_manager/trunk/call_manager_app/vendor/plugins/backgroundrb/server/lib/backgroundrb_server.rb:315:in 
`run'
/usr/local/lib/ruby/gems/1.8/gems/daemons-1.0.3/lib/daemons/application.rb:186:in 
`start_proc'
/usr/local/lib/ruby/gems/1.8/gems/daemons-1.0.3/lib/daemons/application.rb:196:in 
`start_proc'
/usr/local/lib/ruby/gems/1.8/gems/daemons-1.0.3/lib/daemons/application.rb:226:in 
`start'
/usr/local/lib/ruby/gems/1.8/gems/daemons-1.0.3/lib/daemons/controller.rb:72:in 
`run'
/usr/local/lib/ruby/gems/1.8/gems/daemons-1.0.3/lib/daemons.rb:179:in 
`run_proc'
/usr/local/lib/ruby/gems/1.8/gems/daemons-1.0.3/lib/daemons/cmdline.rb:94:in 
`catch_exceptions'
/usr/local/lib/ruby/gems/1.8/gems/daemons-1.0.3/lib/daemons.rb:178:in 
`run_proc'
/home/chris/projects/call_manager/trunk/call_manager_app/vendor/plugins/backgroundrb/server/lib/backgroundrb_server.rb:301:in 
`run'


I'm running slave (1.1.0) and daemons (1.0.3) as required.

I'm starting the worker with:
MiddleMan.new_worker(:class => :calls_worker, :job_key => :calls_watcher)

thanks in advance!

cheers,
chris.


More information about the Backgroundrb-devel mailing list