Module: Delayed::Maintenance

Included in:
Worker
Defined in:
lib/delayed_job_maintenance/maintenance.rb

Instance Method Summary collapse

Instance Method Details

#work_off(num = 100) ⇒ Object



3
4
5
6
7
8
9
# File 'lib/delayed_job_maintenance/maintenance.rb', line 3

def work_off(num=100)
  if File.exist?(DelayedJobMaintenance.configuration.maintenance_file)
    return [0,0]
  end

  super(num)
end