Module: Resque

Defined in:
lib/resque/heartbeat.rb

Defined Under Namespace

Classes: Worker

Class Method Summary collapse

Class Method Details

.prune_dead_workersObject



4
5
6
7
8
# File 'lib/resque/heartbeat.rb', line 4

def self.prune_dead_workers
  Worker.all.each do |worker|
    worker.unregister_worker if worker.last_heartbeat_before?(5)
  end
end