class SimpleMutex::SidekiqSupport::BatchCleaner
Public Class Methods
new()
click to toggle source
Calls superclass method
# File lib/simple_mutex/sidekiq_support/batch_cleaner.rb, line 12 def initialize ::SimpleMutex.sidekiq_pro_check! super end
unlock_dead_batches()
click to toggle source
# File lib/simple_mutex/sidekiq_support/batch_cleaner.rb, line 7 def unlock_dead_batches new.unlock end
Private Instance Methods
get_active_entity_ids()
click to toggle source
# File lib/simple_mutex/sidekiq_support/batch_cleaner.rb, line 27 def get_active_entity_ids ::Sidekiq::BatchSet.new.map(&:bid) end
path_to_entity_id()
click to toggle source
# File lib/simple_mutex/sidekiq_support/batch_cleaner.rb, line 23 def path_to_entity_id %w[payload bid] end
type()
click to toggle source
# File lib/simple_mutex/sidekiq_support/batch_cleaner.rb, line 19 def type "Batch" end