Displaying 1 result from an estimated 1 matches for "encoder_work".
Did you mean:
encoder_worker
2008 Jan 13
3
right usage of bdrb
...dWorker < BackgrounDRb::MetaWorker
set_worker_name :download_worker
def create(args = nil)
# this method is called, when worker is loaded for the first time
end
def download(itemid)
item = Item.find_by_id(:itemid)
# fetch enclosure
MiddleMan.ask_work(:worker => encoder_worker, :worker_method =>
encode, :data => item.id)
end
- - - - - - -
encoder_worker.rb
- - - - - - -
class EncoderWorker < BackgrounDRb::MetaWorker
set_worker_name :encoder_worker
def create(args = nil)
# this method is called, when worker is loaded for the first time
end...