-
-
Notifications
You must be signed in to change notification settings - Fork 505
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Latest sidekiq breaks Sentrys assumption of ActiveJob being loaded #2517
Comments
Ohhhh so that's why I had to disable eager loading in our spec suite the other day. Thanks for reporting this. I'll figure out a solution. |
What about
|
@piotr-switlicki I need to double check but I tried all kinds of approaches and this code just breaks in various ways because ActiveJob itself crashes internally as it's not loading correctly when there's already a top level ActiveJob constant defined. |
Issue Description
Sidekiq v7.3.8 always requires its ActiveJob adapter now. That means that a top-level
ActiveJob
module will be defined, even if active_job itself isn't loaded nor configured at all.Since Sentry tries to load its ActiveJob job when the top-level
ActiveJob
constant exists, this error happens:See sidekiq/sidekiq#6584 too.
Reproduction Steps
Try to start a demo Rails application that does not load ActiveJob but Sidekiq 7.3.8.
To not load ActiveJob, adjust
application.rb
like this:Expected Behavior
Not to break.
Actual Behavior
Apps don't boot anymore (sidekiq/sidekiq#6584).
Ruby Version
3.3.5
SDK Version
5.22.1
Integration and Its Version
Rails, Sidekiq
Sentry Config
The text was updated successfully, but these errors were encountered: