Module: Sidekiq::Worker::Overrides

Included in:
Sidekiq::Worker
Defined in:
lib/sidekiq_unique_jobs/testing.rb

Overview

Prepends deletion of locks to clear_all

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#sidekiq_options(options = {}) ⇒ void

This method returns an undefined value.

Overrides sidekiq_options on the worker class to prepend validation

Parameters:

  • options (Hash) (defaults to: {})

    worker options



87
88
89
90
91
# File 'lib/sidekiq_unique_jobs/testing.rb', line 87

def sidekiq_options(options = {})
  SidekiqUniqueJobs.validate_worker!(options) if SidekiqUniqueJobs.config.raise_on_config_error

  super(options)
end