rails/activejob/test
Edouard CHIN 9eb4b4ed01 Fix deprecation being thrown at boot time:
-
  ### 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.
2019-12-13 03:25:03 +01:00
..
adapters Remove support for Qu gem. 2018-03-19 21:27:16 +01:00
cases Fix deprecation being thrown at boot time: 2019-12-13 03:25:03 +01:00
integration Run inline jobs in separate threads 2019-11-01 20:14:40 -04:00
jobs Don't run AJ after_enqueue / after_perform when chain is halted: 2019-12-09 17:17:23 +01:00
models [Active Job] rubocop -a --only Layout/EmptyLineAfterMagicComment 2017-07-11 13:12:32 +09:00
support Tidy up the build output for Active Job adapters 2019-10-23 20:47:50 +10:30
helper.rb Fix deprecation being thrown at boot time: 2019-12-13 03:25:03 +01:00