module Sidekiq::ScheduledSet::UniqueExtension
Provides extensions for unlocking jobs that are removed and deleted
@author Mikael Henriksson <mikael@mhenrixon.com>
Public Instance Methods
delete(score, job_id)
click to toggle source
Wraps the original method to ensure locks for the job are deleted
@param [Integer, Float] score the score in the scheduled set @param [String] job_id the Sidekiq
JID
Calls superclass method
# File lib/sidekiq_unique_jobs/sidekiq_unique_ext.rb, line 61 def delete(score, job_id) entry = find_job(job_id) SidekiqUniqueJobs::Unlockable.delete!(entry.item) if super(score, job_id) entry end