I have implemented sidekiq, In which a number of jobs been executed So I wanted to add uniqueness on default queue
, to add uniqueness on jobs I have used sidekiq-unique-jobs gem.
I have followed the below steps:
Gemfile
gem 'sidekiq-unique-jobs'
And then execute:
bundle install
Worker.rb
Class Worker
include Sidekiq::Worker
sidekiq_options retry: 2, unique_across_queues: true, queue: 'default',lock: :until_executing
def perform(args);
....
....
end
end
After adding the above configuration on my worker I am getting below error:
SidekiqUniqueJobs::UnknownLock: No implementation for
lock: :all
Any suggestion will be appreciated!
There are other sidekiq_options
in your project which set the lock: :all
. try to grep in your project files and remove it.