Class: RailsVisualizer::JobsInspector
- Inherits:
-
Object
- Object
- RailsVisualizer::JobsInspector
- Includes:
- PathHelper
- Defined in:
- lib/rails_visualizer/jobs_inspector.rb
Constant Summary collapse
- FRAMEWORK_NAMESPACES =
Namespaces whose jobs come from Rails or popular gems, not user code.
%w[ ActiveJob:: ActionMailer:: ActiveStorage:: ActionMailbox:: Turbo:: ActiveRecord:: ].freeze
- BASE_JOB_NAMES =
Conventional application base-class names.
%w[ApplicationJob].freeze
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(excluded: []) ⇒ JobsInspector
constructor
A new instance of JobsInspector.
Constructor Details
#initialize(excluded: []) ⇒ JobsInspector
Returns a new instance of JobsInspector.
20 21 22 |
# File 'lib/rails_visualizer/jobs_inspector.rb', line 20 def initialize(excluded: []) @excluded_set = excluded.to_set end |
Instance Method Details
#call ⇒ Object
24 25 26 27 28 29 30 |
# File 'lib/rails_visualizer/jobs_inspector.rb', line 24 def call { adapter: detect_adapter, active_jobs: collect_active_jobs, sidekiq_workers: collect_sidekiq_workers } end |