[Backgroundrb-devel] Problems when starting worker in 1.03

Anthony Underwood email2ants at gmail.com
Wed Mar 5 09:12:25 EST 2008


Here's part of my worker class. When starting this worker without any  
args the server complains that it is trying to evaluate nil.[] in line  
6 despite the fact that a default is defined in the create method.  
This worked fine before 1.03


class LongJobWorker < BackgrounDRb::MetaWorker
   set_worker_name :long_job_worker
   set_no_auto_load(true)
   def create(args={})
     # this method is called, when worker is loaded for the first time
     @job = args[:job]
     register_status("started")
   end
  ........
end
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20080305/c44170a6/attachment.html 


More information about the Backgroundrb-devel mailing list