Class: SimpleMutex::SidekiqSupport::BatchCleaner

Inherits:
BaseCleaner
  • Object
show all
Defined in:
lib/simple_mutex/sidekiq_support/batch_cleaner.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseCleaner

#unlock

Constructor Details

#initializeBatchCleaner

Returns a new instance of BatchCleaner.



12
13
14
15
# File 'lib/simple_mutex/sidekiq_support/batch_cleaner.rb', line 12

def initialize
  ::SimpleMutex.sidekiq_pro_check!
  super
end

Class Method Details

.unlock_dead_batchesObject



7
8
9
# File 'lib/simple_mutex/sidekiq_support/batch_cleaner.rb', line 7

def unlock_dead_batches
  new.unlock
end