Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 996c046

Browse files
committedMar 7, 2025
Fix flaky specs, I think
1 parent 6f41f6f commit 996c046

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎sentry-rails/lib/sentry/rails/railtie.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ class Railtie < ::Rails::Railtie
5252

5353
register_error_subscriber(app) if ::Rails.version.to_f >= 7.0 && Sentry.configuration.rails.register_error_subscriber
5454

55-
register_retry_stopped_subscriber if defined?(ActiveJob)
55+
# Presence of ActiveJob is no longer a reliable cue
56+
register_retry_stopped_subscriber if defined?(Sentry::Rails::ActiveJobExtensions)
5657
end
5758

5859
runner do

0 commit comments

Comments
 (0)
Please sign in to comment.