[Backgroundrb-devel] :job_key acting weird?

Ivo Dancet caifara.subscribe at gmail.com
Fri Dec 15 03:40:21 EST 2006


Hi all

I'm experiencing something strange with a :job_key, it took me a very  
long time to find out a worker wasn't doing it's job because of the  
name of my job_key. The first one I tried was :make_kohier, and with  
that name (and lot's of other ones) I can't get the worker to work. I  
do get my key in return, but the job doesn't start (the worker only  
had a logger.info method in it, no error there). As I can't see any  
results of this logger, and I can't delete the worker, the worker  
doesn't exist.
I couldn't find the fault until I started changing the name of the  
job_key. I can't see any rules in it, some examples :job_key  
=> :sdlkfskdsld doesn't work, :job_key => :skj does. :udjzkzis  
and :ssdlfdo don't work, :ssdlfdk does work.
Just now I discovered that these keys sometimes work, sometimes  
not... Anyway, I only get errors if I run script/backgroundrb run,  
otherwise, there is nothing informing me of some error. Here is what  
I get in backgroundrb run

[system: Mac OS X Tiger]

You have a nil object when you didn't expect it!
The error occured while evaluating nil.wait - (NoMethodError)
/Users/caifara/Desktop/polders/vendor/plugins/backgroundrb/server/lib/ 
backgroundrb/middleman.rb:217:in `new_worker'
/Users/caifara/Desktop/polders/vendor/plugins/backgroundrb/server/lib/ 
backgroundrb/thread_pool.rb:36:in `dispatch'
/Users/caifara/Desktop/polders/vendor/plugins/backgroundrb/server/lib/ 
backgroundrb/thread_pool.rb:22:in `dispatch'
/Users/caifara/Desktop/polders/vendor/plugins/backgroundrb/server/lib/ 
backgroundrb/middleman.rb:199:in `new_worker'
/Applications/Locomotive2/Bundles/standardRailsSept2006.locobundle/ 
powerpc/lib/ruby/1.8/drb/drb.rb:1552:in `perform_without_block'
/Applications/Locomotive2/Bundles/standardRailsSept2006.locobundle/ 
powerpc/lib/ruby/1.8/drb/drb.rb:1512:in `perform'
/Applications/Locomotive2/Bundles/standardRailsSept2006.locobundle/ 
powerpc/lib/ruby/1.8/drb/drb.rb:1586:in `main_loop'
/Applications/Locomotive2/Bundles/standardRailsSept2006.locobundle/ 
powerpc/lib/ruby/1.8/drb/drb.rb:1582:in `main_loop'
/Applications/Locomotive2/Bundles/standardRailsSept2006.locobundle/ 
powerpc/lib/ruby/1.8/drb/drb.rb:1578:in `main_loop'
/Applications/Locomotive2/Bundles/standardRailsSept2006.locobundle/ 
powerpc/lib/ruby/1.8/drb/drb.rb:1427:in `run'
/Applications/Locomotive2/Bundles/standardRailsSept2006.locobundle/ 
powerpc/lib/ruby/1.8/drb/drb.rb:1424:in `run'
/Applications/Locomotive2/Bundles/standardRailsSept2006.locobundle/ 
powerpc/lib/ruby/1.8/drb/drb.rb:1344:in `initialize'
/Applications/Locomotive2/Bundles/standardRailsSept2006.locobundle/ 
powerpc/lib/ruby/1.8/drb/drb.rb:1624:in `start_service'
/Users/caifara/Desktop/polders/vendor/plugins/backgroundrb/server/lib/ 
backgroundrb_server.rb:315:in `run'
/Applications/Locomotive2/Bundles/standardRailsSept2006.locobundle/ 
powerpc/lib/ruby/gems/1.8/gems/daemons-1.0.3/lib/daemons/ 
application.rb:186:in `start_proc'
/Applications/Locomotive2/Bundles/standardRailsSept2006.locobundle/ 
powerpc/lib/ruby/gems/1.8/gems/daemons-1.0.3/lib/daemons/ 
application.rb:196:in `start_proc'
/Applications/Locomotive2/Bundles/standardRailsSept2006.locobundle/ 
powerpc/lib/ruby/gems/1.8/gems/daemons-1.0.3/lib/daemons/ 
application.rb:226:in `start'
/Applications/Locomotive2/Bundles/standardRailsSept2006.locobundle/ 
powerpc/lib/ruby/gems/1.8/gems/daemons-1.0.3/lib/daemons/ 
controller.rb:72:in `run'
/Applications/Locomotive2/Bundles/standardRailsSept2006.locobundle/ 
powerpc/lib/ruby/gems/1.8/gems/daemons-1.0.3/lib/daemons.rb:179:in  
`run_proc'
/Applications/Locomotive2/Bundles/standardRailsSept2006.locobundle/ 
powerpc/lib/ruby/gems/1.8/gems/daemons-1.0.3/lib/daemons/cmdline.rb: 
94:in `catch_exceptions'
/Applications/Locomotive2/Bundles/standardRailsSept2006.locobundle/ 
powerpc/lib/ruby/gems/1.8/gems/daemons-1.0.3/lib/daemons.rb:178:in  
`run_proc'
/Users/caifara/Desktop/polders/vendor/plugins/backgroundrb/server/lib/ 
backgroundrb_server.rb:301:in `run'
script/backgroundrb:29

Am I missing something here?
Thanks for reading
Ivo


More information about the Backgroundrb-devel mailing list