Class: Sidekiq::Control::Configuration
- Inherits:
-
Object
- Object
- Sidekiq::Control::Configuration
- 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
-
#ignored_classes ⇒ Object
Returns the value of attribute ignored_classes.
- #jobs ⇒ Object
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_classes ⇒ Object
Returns the value of attribute ignored_classes.
7 8 9 |
# File 'lib/sidekiq/control/configuration.rb', line 7 def ignored_classes @ignored_classes end |
#jobs ⇒ Object
26 27 28 |
# File 'lib/sidekiq/control/configuration.rb', line 26 def jobs @jobs ||= application_jobs.sort_by(&:name) end |