Skip to content

Commit

Permalink
copy other logic
Browse files Browse the repository at this point in the history
  • Loading branch information
modosc committed Dec 18, 2024
1 parent 40add25 commit 41a6bcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sentry-rails/lib/sentry/rails/active_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def register_retry_stopped_subscriber
end

def retry_stopped_handler(*args)
return if already_supported_by_sentry_integration?
return if !Sentry.initialized? || already_supported_by_sentry_integration?
return unless Sentry.configuration.active_job.report_after_job_retries
event = ActiveSupport::Notifications::Event.new(*args)
job = event.payload[:job]
Expand Down

0 comments on commit 41a6bcc

Please sign in to comment.