class SimpleMutex::SidekiqSupport::JobCleaner
Public Class Methods
unlock_dead_jobs()
click to toggle source
# File lib/simple_mutex/sidekiq_support/job_cleaner.rb, line 7 def unlock_dead_jobs new.unlock end
Private Instance Methods
get_active_entity_ids()
click to toggle source
# File lib/simple_mutex/sidekiq_support/job_cleaner.rb, line 22 def get_active_entity_ids ::Sidekiq::Workers.new.map { |_pid, _tid, work| work["payload"]["jid"] } end
path_to_entity_id()
click to toggle source
# File lib/simple_mutex/sidekiq_support/job_cleaner.rb, line 18 def path_to_entity_id %w[payload jid] end
type()
click to toggle source
# File lib/simple_mutex/sidekiq_support/job_cleaner.rb, line 14 def type "Job" end