Anthony Underwood
2008-Mar-05 14:12 UTC
[Backgroundrb-devel] Problems when starting worker in 1.03
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
hemant kumar
2008-Mar-06 07:33 UTC
[Backgroundrb-devel] Problems when starting worker in 1.03
On Wed, 2008-03-05 at 14:12 +0000, Anthony Underwood wrote:> 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 > ........ > endMany, thanks. If possible, Also file a bug report so that it doesn''t get lost in mailing list junk.