From 40add2588ccd2c188a6752d1c02c86b93a31d9fc Mon Sep 17 00:00:00 2001 From: jonathan schatz Date: Wed, 18 Dec 2024 08:49:56 -0800 Subject: [PATCH] handle already_supported_by_sentry_integration --- 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 ddb899ed4..b9b447500 100644 --- a/sentry-rails/lib/sentry/rails/active_job.rb +++ b/sentry-rails/lib/sentry/rails/active_job.rb @@ -74,8 +74,8 @@ def register_retry_stopped_subscriber end def retry_stopped_handler(*args) + return if 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] error = event.payload[:error]