Module: Sidekiq::JobSet::UniqueExtension Private
- Included in:
- Sidekiq::JobSet
- 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
Instance Method Summary collapse
-
#clear ⇒ Object
private
Wraps the original method to ensure locks for the job are deleted.
-
#delete_by_value(name, value) ⇒ Object
private
Wraps the original method to ensure locks for the job are deleted.
Instance Method Details
#clear ⇒ Object
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
144 145 146 147 |
# File 'lib/sidekiq_unique_jobs/sidekiq_unique_ext.rb', line 144 def clear each(&:delete) super end |
#delete_by_value(name, value) ⇒ Object
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
156 157 158 |
# File 'lib/sidekiq_unique_jobs/sidekiq_unique_ext.rb', line 156 def delete_by_value(name, value) SidekiqUniqueJobs::Unlockable.delete!(Sidekiq.load_json(value)) if super(name, value) end |