Displaying 1 result from an estimated 1 matches for "batch_maker_worker".
2008 Mar 20
2
can''t call any methods on workers
...oesn''t matter what''s in the method, it could be empty and it still
doesn''t run (I am restarting backgroundrb after each modification - is
this still necessary?).
Here''s my test worker:
class BatchMakerWorker < BackgrounDRb::MetaWorker
set_worker_name :batch_maker_worker
def create(args = nil)
# this method is called, when worker is loaded for the first time
end
def process_batch
end
end
The rails code I''m using to test the worker looks like this:
job_key = MiddleMan.new_worker(:class => :batch_maker_worker)
worker = Midd...