Module: Sidekiq::Worker::Options

Defined in:
lib/sidekiq/worker.rb

Overview

The Options module is extracted so we can include it in ActiveJob::Base and allow native AJs to configure Sidekiq features/internals.

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object


28
29
30
31
32
33
# File 'lib/sidekiq/worker.rb', line 28

def self.included(base)
  base.extend(ClassMethods)
  base.sidekiq_class_attribute :sidekiq_options_hash
  base.sidekiq_class_attribute :sidekiq_retry_in_block
  base.sidekiq_class_attribute :sidekiq_retries_exhausted_block
end