Class: Sidekiq::Control::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/sidekiq/control/configuration.rb

Constant Summary collapse

DEFAULT_IGNORED_CLASSES =
%w(
  ApplicationJob
  Sidekiq::Batch::Callback
  Rollbar::Delay::Sidekiq
  Searchkick::ReindexV2Job
  Searchkick::BulkReindexJob
  Searchkick::ProcessBatchJob
  Searchkick::ProcessQueueJob
  ActiveJob::QueueAdapters::SidekiqAdapter::JobWrapper
  ActiveStorage::AnalyzeJob
  ActiveStorage::PurgeJob
).freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



22
23
24
# File 'lib/sidekiq/control/configuration.rb', line 22

def initialize
  self.ignored_classes = DEFAULT_IGNORED_CLASSES
end

Instance Attribute Details

#ignored_classesObject

Returns the value of attribute ignored_classes.



7
8
9
# File 'lib/sidekiq/control/configuration.rb', line 7

def ignored_classes
  @ignored_classes
end

#jobsObject



26
27
28
# File 'lib/sidekiq/control/configuration.rb', line 26

def jobs
  @jobs ||= application_jobs.sort_by(&:name)
end