BackgroundRB - Confused

Ok new worker code will look like:

class VideoConversionWorker < BackgrounDRb::MetaWorker
  set_worker_name :video_conversion_worker
  set_no_auto_load true
  def create(args = nil)
    logger.info("Entered VideoConversionWorker.")
    video_id = args[:video_id]
    video_file = args[:absolute_path]
    video = Video.find(video_id)
    logger.info("File: " + video_file)
    logger.info("Video id: " + video_id)
    video.convert_to_flv
    logger.info("done worker code")
  end
end

MiddleMan.new_worker(:worker => :video_conversion_worker, :job_key =>
"video" + self.id.to_s, :data => { :absolute_path => self.full_filename,
:video_id => self.id.to_s })

That's about it. If you have any further problems, please ask on:

http://rubyforge.org/mailman/listinfo/backgroundrb-devel