Module: Sidekiq::ScheduledSet::UniqueExtension

Included in:
Sidekiq::ScheduledSet
Defined in:
lib/sidekiq_unique_jobs/sidekiq_unique_ext.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object


36
37
38
39
40
41
# File 'lib/sidekiq_unique_jobs/sidekiq_unique_ext.rb', line 36

def self.included(base)
  base.class_eval do
    alias_method :delete_orig, :delete
    alias_method :delete, :delete_ext
  end
end

Instance Method Details

#delete_extObject


43
44
45
# File 'lib/sidekiq_unique_jobs/sidekiq_unique_ext.rb', line 43

def delete_ext
  SidekiqUniqueJobs::Unlockable.unlock(item) if delete_orig
end