Class: Myreplicator::Sweeper

Inherits:
Object
  • Object
show all
Defined in:
app/models/myreplicator/sweeper.rb

Class Method Summary collapse

Class Method Details

.performObject

Main method provided for resque Reconnection provided for resque workers



10
11
12
13
14
15
16
# File 'app/models/myreplicator/sweeper.rb', line 10

def self.perform
  Myreplicator::Log.clear_deads
  Myreplicator::Log.clear_stucks
  ActiveRecord::Base.configurations.keys.each do |db|
    Myreplicator::VerticaLoader.clean_up_temp_tables(db)
  end
end