Exception: SidekiqUniqueJobs::InvalidWorker

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(lock_config) ⇒ InvalidWorker

Returns a new instance of InvalidWorker.



61
62
63
64
65
66
# File 'lib/sidekiq_unique_jobs/exceptions.rb', line 61

def initialize(lock_config)
  super(<<~FAILURE_MESSAGE)
    Expected #{lock_config.worker} to have valid sidekiq options but found the following problems:
    #{lock_config.errors_as_string}
  FAILURE_MESSAGE
end