Exception: SidekiqUniqueJobs::NotUniqueWorker

Inherits:
UniqueJobsError show all
Defined in:
lib/sidekiq_unique_jobs/exceptions.rb

Overview

Raised when a workers configuration is invalid

Author:

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ NotUniqueWorker

Returns a new instance of NotUniqueWorker.



95
96
97
# File 'lib/sidekiq_unique_jobs/exceptions.rb', line 95

def initialize(options)
  super("#{options[:class]} is not configured for uniqueness. Missing the key `:lock` in #{options.inspect}")
end