Module: ActiveJob::Uniqueness::SidekiqPatch::JobSet

Defined in:
lib/active_job/uniqueness/sidekiq_patch.rb

Instance Method Summary collapse

Instance Method Details

#clearObject



64
65
66
67
# File 'lib/active_job/uniqueness/sidekiq_patch.rb', line 64

def clear
  each(&:delete)
  super
end

#delete_by_value(name, value) ⇒ Object



69
70
71
# File 'lib/active_job/uniqueness/sidekiq_patch.rb', line 69

def delete_by_value(name, value)
  ActiveJob::Uniqueness.unlock_sidekiq_job!(Sidekiq.load_json(value)) if super
end