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]