You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
classDomainWorkerincludeSidekiq::Workersidekiq_optionsqueue: :platform,backtrace: true,unique: :until_executingdefperform(account_id)account=Account.findaccount_idaccount.domains.each(&:sync!)endend# run in console1000.times{DomainWorker.perform_async(4)}
You will notice that more than 1 job will be processed by Sidekiq. Any ideas how to solve this issue?
The text was updated successfully, but these errors were encountered:
The until_executing option makes a job unique before Sidekiq started to perform it, right? So is it possible your job finishes faster than 1000.times { DomainWorker.perform_async(4) }, the lock gets removed and Sidekiq is then allowed to queue one more job?
You will notice that more than 1 job will be processed by Sidekiq. Any ideas how to solve this issue?
The text was updated successfully, but these errors were encountered: