mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
9eb4b4ed01
- ### Problem In rails/rails@bbfab0b33a I introduced a change which outputs a deprecation whenever a class inherits from ActiveJob::Base. This has the negative effect to trigger a massive amount of deprecation at boot time especially if your app is eagerloaded (like it's usually the case on CI). Another issue with this approach was that the deprecation will be output no matter if a job define a `after_perform` callbacks i.e. ```ruby class MyJob < AJ::Base before_enqueue { throw(:abort) } end # This shouldn't trigger a deprecation since no after callbacks are defined # The change in 6.2 will be already safe for the app. ``` ### Solution Trigger the deprecation only when a job is abort (during enqueuing or performing) AND a `after_perform` callback is defined on the job. |
||
---|---|---|
.. | ||
adapter_test.rb | ||
argument_serialization_test.rb | ||
callbacks_test.rb | ||
exceptions_test.rb | ||
job_serialization_test.rb | ||
logging_test.rb | ||
queue_adapter_test.rb | ||
queue_naming_test.rb | ||
queue_priority_test.rb | ||
queuing_test.rb | ||
rescue_test.rb | ||
serializers_test.rb | ||
test_case_test.rb | ||
test_helper_test.rb | ||
timezones_test.rb | ||
translation_test.rb |