Topic: Trying to delete a backgroundrb worker

Hi, I'm trying to get rid of a worker, but I can't seem to make it happen.

The worker starts like this:

def do_install
    MiddleMan.new_worker :class => :start_new_year_worker,
                         :args => {},
                         :job_key => 'new_year_worker'
   
    render :partial => 'do_install'
end

The worker looks like this (but goes through more files)
class StartNewYearWorker < BackgrounDRb::Rails
 
  attr_reader :progress
 
  def do_work(args)
    folder = RAILS_ROOT + "/raw_data_files/"
   
    @progress = []
    @progress.push "Started"
   
    file = folder + "da.txt"
      
    IO.foreach( file ) do |line|
        object = Da.new
        line = line.split(';')
        cols = Da.columns.collect do |t| t.name end
        object = arrayBinder( line, object, cols )
        object.save
    end

    @progress.push "Da finished"
  end

  private
    def arrayBinder( array, object, cols ) # bind array from input file to object
      count = 1
      array.each do |entry|
        object[cols[count]] = entry
        count = count.next
      end
      return object
    end
end


The worker starts of ok, it looks like it works very good (It fills the db and I get progress feedback). But the ":ttl" option does not work on it and things like MiddleMan.delete_worker('start_new_year') or MiddleMan.gc!(Time.now) just hang.