From 41a6bccfb91474d1b6b50cdbfbc2dbdeaebbc86b Mon Sep 17 00:00:00 2001 From: jonathan schatz Date: Wed, 18 Dec 2024 08:53:11 -0800 Subject: [PATCH] copy other logic --- sentry-rails/lib/sentry/rails/active_job.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sentry-rails/lib/sentry/rails/active_job.rb b/sentry-rails/lib/sentry/rails/active_job.rb index b9b447500..89f240909 100644 --- a/sentry-rails/lib/sentry/rails/active_job.rb +++ b/sentry-rails/lib/sentry/rails/active_job.rb @@ -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]