A uniq job is already queued or scheduled, and then a new job coming. Will it lose ?
class QueueWorker
include Sidekiq::Worker
sidekiq_options queue: 'test', unique: true, unique_args: :unique_args
def self.unique_args user_id, client_id, options
[user_id, client_id]
end
def perform(*args)
sleep 10
end
end
QueueWorker.perform_sync(1,1, {}) # No.1
QueueWorker.perform_sync(2,1, {}) # No.2
QueueWorker.perform_sync(1,1, {}) # No.3
After reading the source code, I found that if the No.1 job was previously scheduled and is now being queued, the No.3 job will lose!

A uniq job is already queued or scheduled, and then a new job coming. Will it lose ?
After reading the source code, I found that if the
No.1job was previously scheduled and is now being queued, theNo.3job will lose!