Module: Sidekiq::SortedEntry::UniqueExtension Private

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

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Provides extensions for unlocking jobs that are removed and deleted

Author:

Instance Method Summary collapse

Instance Method Details

#deleteHash

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Wraps the original method to ensure locks for the job are deleted

Returns:

  • (Hash)

    the deleted sidekiq job hash



23
24
25
26
# File 'lib/sidekiq_unique_jobs/sidekiq_unique_ext.rb', line 23

def delete
  SidekiqUniqueJobs::Unlockable.delete!(item) if super
  item
end