Module: Checkend::Integrations::ActiveJob
- Defined in:
- lib/checkend/integrations/active_job.rb
Overview
ActiveJob integration for capturing job errors.
Works with any ActiveJob backend including Solid Queue, Sidekiq, etc. For Sidekiq, the Sidekiq integration is preferred as it provides more detailed context.
Defined Under Namespace
Modules: Extension
Constant Summary collapse
- SKIP_ADAPTERS =
Adapters that have their own error handling (use those instead)
%w[ sidekiq resque ].freeze
Class Method Summary collapse
-
.active_job_available? ⇒ Boolean
Check if ActiveJob is available.
-
.install! ⇒ void
Install the ActiveJob extension.
Class Method Details
.active_job_available? ⇒ Boolean
Check if ActiveJob is available
39 40 41 |
# File 'lib/checkend/integrations/active_job.rb', line 39 def active_job_available? defined?(::ActiveJob::Base) end |
.install! ⇒ void
This method returns an undefined value.
Install the ActiveJob extension
30 31 32 33 34 |
# File 'lib/checkend/integrations/active_job.rb', line 30 def install! return unless active_job_available? ::ActiveJob::Base.include(Extension) end |