activejob 6.0.5.1 → 6.1.7.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a1847238229bdb708f03fe9cc824d519a21849820bc2b05cd38bef78f8b34c34
4
- data.tar.gz: e463dfca80d56b05e0dc5e61745b21410b135fe3067c381b72ff589eaee1ce0d
3
+ metadata.gz: 6edf61bce38a2e54160ecaccc9b779b71c805eb81d47f6979b31f99b2f9dd1d5
4
+ data.tar.gz: 2628b10789db3babab3357f015e4aae9129bbe6f5bab3c3013171e67ab7747ae
5
5
  SHA512:
6
- metadata.gz: 70f4c1a8133165369e8f7a62406f8310949dace3a8ec60a22624747b1a4f996c757df9e43d384fd96e3c1c4d320dfe0b09723605ad265ee285a3cdbf8bdacea6
7
- data.tar.gz: 14dce6e3173dcfb57869a3fca4580d3a5f9f0584b3941af91cfc49f51a737c5e10aab3ecabd9eb8846c80c570cdc7fb8b84ef1500b658faac9a25950562c0271
6
+ metadata.gz: b1b597f18adc8bf458b89e9c333ea6c59a5a043ee2e432f55183b5668e87667f9a3694d4a705c46cd107ff536653c9d1caba29f9ae8f28633931e3775dd728b2
7
+ data.tar.gz: 74b947086abbcec856ea6f47d4e948d490423f828f50c3b81c5f53ea285f127681e46d2023ed3b5994e1b9884d0b5f9bb4a24fc52b8e3c87cf09a0d21e3661b8
data/CHANGELOG.md CHANGED
@@ -1,283 +1,236 @@
1
- ## Rails 6.0.5.1 (July 12, 2022) ##
1
+ ## Rails 6.1.7.1 (January 17, 2023) ##
2
2
 
3
3
  * No changes.
4
4
 
5
5
 
6
- ## Rails 6.0.5 (May 09, 2022) ##
6
+ ## Rails 6.1.7 (September 09, 2022) ##
7
7
 
8
8
  * No changes.
9
9
 
10
10
 
11
- ## Rails 6.0.4.8 (April 26, 2022) ##
11
+ ## Rails 6.1.6.1 (July 12, 2022) ##
12
12
 
13
13
  * No changes.
14
14
 
15
15
 
16
- ## Rails 6.0.4.7 (March 08, 2022) ##
16
+ ## Rails 6.1.6 (May 09, 2022) ##
17
17
 
18
18
  * No changes.
19
19
 
20
20
 
21
- ## Rails 6.0.4.6 (February 11, 2022) ##
21
+ ## Rails 6.1.5.1 (April 26, 2022) ##
22
22
 
23
23
  * No changes.
24
24
 
25
25
 
26
- ## Rails 6.0.4.5 (February 11, 2022) ##
26
+ ## Rails 6.1.5 (March 09, 2022) ##
27
27
 
28
28
  * No changes.
29
29
 
30
30
 
31
- ## Rails 6.0.4.4 (December 15, 2021) ##
31
+ ## Rails 6.1.4.7 (March 08, 2022) ##
32
32
 
33
33
  * No changes.
34
34
 
35
35
 
36
- ## Rails 6.0.4.3 (December 14, 2021) ##
36
+ ## Rails 6.1.4.6 (February 11, 2022) ##
37
37
 
38
38
  * No changes.
39
39
 
40
40
 
41
- ## Rails 6.0.4.2 (December 14, 2021) ##
41
+ ## Rails 6.1.4.5 (February 11, 2022) ##
42
42
 
43
43
  * No changes.
44
44
 
45
45
 
46
- ## Rails 6.0.4.1 (August 19, 2021) ##
46
+ ## Rails 6.1.4.4 (December 15, 2021) ##
47
47
 
48
48
  * No changes.
49
49
 
50
50
 
51
- ## Rails 6.0.4 (June 15, 2021) ##
51
+ ## Rails 6.1.4.3 (December 14, 2021) ##
52
52
 
53
53
  * No changes.
54
54
 
55
55
 
56
- ## Rails 6.0.3.7 (May 05, 2021) ##
56
+ ## Rails 6.1.4.2 (December 14, 2021) ##
57
57
 
58
58
  * No changes.
59
59
 
60
60
 
61
- ## Rails 6.0.3.6 (March 26, 2021) ##
61
+ ## Rails 6.1.4.1 (August 19, 2021) ##
62
62
 
63
63
  * No changes.
64
64
 
65
65
 
66
- ## Rails 6.0.3.5 (February 10, 2021) ##
66
+ ## Rails 6.1.4 (June 24, 2021) ##
67
67
 
68
68
  * No changes.
69
69
 
70
70
 
71
- ## Rails 6.0.3.4 (October 07, 2020) ##
71
+ ## Rails 6.1.3.2 (May 05, 2021) ##
72
72
 
73
73
  * No changes.
74
74
 
75
75
 
76
- ## Rails 6.0.3.3 (September 09, 2020) ##
76
+ ## Rails 6.1.3.1 (March 26, 2021) ##
77
77
 
78
78
  * No changes.
79
79
 
80
80
 
81
- ## Rails 6.0.3.2 (June 17, 2020) ##
81
+ ## Rails 6.1.3 (February 17, 2021) ##
82
82
 
83
83
  * No changes.
84
84
 
85
85
 
86
- ## Rails 6.0.3.1 (May 18, 2020) ##
86
+ ## Rails 6.1.2.1 (February 10, 2021) ##
87
87
 
88
88
  * No changes.
89
89
 
90
90
 
91
- ## Rails 6.0.3 (May 06, 2020) ##
92
-
93
- * While using `perform_enqueued_jobs` test helper enqueued jobs must be stored for the later check with
94
- `assert_enqueued_with`.
95
-
96
- *Dmitry Polushkin*
97
-
98
- * Add queue name support to Que adapter
99
-
100
- *Brad Nauta*, *Wojciech Wnętrzak*
101
-
102
-
103
- ## Rails 6.0.2.2 (March 19, 2020) ##
91
+ ## Rails 6.1.2 (February 09, 2021) ##
104
92
 
105
93
  * No changes.
106
94
 
107
95
 
108
- ## Rails 6.0.2.1 (December 18, 2019) ##
96
+ ## Rails 6.1.1 (January 07, 2021) ##
109
97
 
110
- * No changes.
98
+ * Make `retry_job` return the job that was created.
111
99
 
100
+ *Rafael Mendonça França*
112
101
 
113
- ## Rails 6.0.2 (December 13, 2019) ##
102
+ * Include `ActiveSupport::Testing::Assertions` in `ActiveJob::TestHelpers`.
114
103
 
115
- * Allow Sidekiq access to the underlying job class.
104
+ *Mikkel Malmberg*
116
105
 
117
- By having access to the Active Job class, Sidekiq can get access to any `sidekiq_options` which
118
- have been set on that Active Job type and serialize those options into Redis.
119
106
 
120
- https://github.com/mperham/sidekiq/blob/master/Changes.md#60
107
+ ## Rails 6.1.0 (December 09, 2020) ##
121
108
 
122
- *Mike Perham*
109
+ * Recover nano precision when serializing `Time`, `TimeWithZone` and `DateTime` objects.
123
110
 
111
+ *Alan Tan*
124
112
 
125
- ## Rails 6.0.1 (November 5, 2019) ##
113
+ * Deprecate `config.active_job.return_false_on_aborted_enqueue`.
126
114
 
127
- * No changes.
115
+ *Rafael Mendonça França*
128
116
 
117
+ * Return `false` when enqueuing a job is aborted.
129
118
 
130
- ## Rails 6.0.0 (August 16, 2019) ##
119
+ *Rafael Mendonça França*
131
120
 
132
- * `assert_enqueued_with` and `assert_performed_with` can now test jobs with relative delay.
133
-
134
- *Vlado Cingel*
135
-
136
-
137
- ## Rails 6.0.0.rc2 (July 22, 2019) ##
138
-
139
- * No changes.
140
-
141
-
142
- ## Rails 6.0.0.rc1 (April 24, 2019) ##
143
-
144
- * Use individual execution counters when calculating retry delay.
145
-
146
- *Patrik Bóna*
147
-
148
- * Make job argument assertions with `Time`, `ActiveSupport::TimeWithZone`, and `DateTime` work by dropping microseconds. Microsecond precision is lost during serialization.
149
-
150
- *Gannon McGibbon*
121
+ * While using `perform_enqueued_jobs` test helper enqueued jobs must be stored for the later check with
122
+ `assert_enqueued_with`.
151
123
 
124
+ *Dmitry Polushkin*
152
125
 
153
- ## Rails 6.0.0.beta3 (March 11, 2019) ##
126
+ * `ActiveJob::TestCase#perform_enqueued_jobs` without a block removes performed jobs from the queue.
154
127
 
155
- * No changes.
128
+ That way the helper can be called multiple times and not perform a job invocation multiple times.
156
129
 
130
+ ```ruby
131
+ def test_jobs
132
+ HelloJob.perform_later("rafael")
133
+ perform_enqueued_jobs # only runs with "rafael"
134
+ HelloJob.perform_later("david")
135
+ perform_enqueued_jobs # only runs with "david"
136
+ end
137
+ ```
157
138
 
158
- ## Rails 6.0.0.beta2 (February 25, 2019) ##
159
-
160
- * No changes.
139
+ *Étienne Barrié*
161
140
 
141
+ * `ActiveJob::TestCase#perform_enqueued_jobs` will no longer perform retries:
162
142
 
163
- ## Rails 6.0.0.beta1 (January 18, 2019) ##
143
+ When calling `perform_enqueued_jobs` without a block, the adapter will
144
+ now perform jobs that are **already** in the queue. Jobs that will end up in
145
+ the queue afterwards won't be performed.
164
146
 
165
- * Return false instead of the job instance when `enqueue` is aborted.
147
+ This change only affects `perform_enqueued_jobs` when no block is given.
166
148
 
167
- This will be the behavior in Rails 6.1 but it can be controlled now with
168
- `config.active_job.return_false_on_aborted_enqueue`.
149
+ *Edouard Chin*
169
150
 
170
- *Kir Shatrov*
151
+ * Add queue name support to Que adapter.
171
152
 
172
- * Keep executions for each specific declaration
153
+ *Brad Nauta*, *Wojciech Wnętrzak*
173
154
 
174
- Each `retry_on` declaration has now its own specific executions counter. Before it was
175
- shared between all executions of a job.
155
+ * Don't run `after_enqueue` and `after_perform` callbacks if the callback chain is halted.
176
156
 
177
- *Alberto Almagro*
157
+ class MyJob < ApplicationJob
158
+ before_enqueue { throw(:abort) }
159
+ after_enqueue { # won't enter here anymore }
160
+ end
178
161
 
179
- * Allow all assertion helpers that have a `only` and `except` keyword to accept
180
- Procs.
162
+ `after_enqueue` and `after_perform` callbacks will no longer run if the callback chain is halted.
163
+ This behaviour is a breaking change and won't take effect until Rails 7.0.
164
+ To enable this behaviour in your app right now, you can add in your app's configuration file
165
+ `config.active_job.skip_after_callbacks_if_terminated = true`.
181
166
 
182
167
  *Edouard Chin*
183
168
 
184
- * Restore `HashWithIndifferentAccess` support to `ActiveJob::Arguments.deserialize`.
169
+ * Fix enqueuing and performing incorrect logging message.
185
170
 
186
- *Gannon McGibbon*
171
+ Jobs will no longer always log "Enqueued MyJob" or "Performed MyJob" when they actually didn't get enqueued/performed.
187
172
 
188
- * Include deserialized arguments in job instances returned from
189
- `assert_enqueued_with` and `assert_performed_with`
173
+ ```ruby
174
+ class MyJob < ApplicationJob
175
+ before_enqueue { throw(:abort) }
176
+ end
190
177
 
191
- *Alan Wu*
178
+ MyJob.perform_later # Will no longer log "Enqueued MyJob" since job wasn't even enqueued through adapter.
179
+ ```
192
180
 
193
- * Allow `assert_enqueued_with`/`assert_performed_with` methods to accept
194
- a proc for the `args` argument. This is useful to check if only a subset of arguments
195
- matches your expectations.
181
+ A new message will be logged in case a job couldn't be enqueued, either because the callback chain was halted or
182
+ because an exception happened during enqueuing. (i.e. Redis is down when you try to enqueue your job)
196
183
 
197
184
  *Edouard Chin*
198
185
 
199
- * `ActionDispatch::IntegrationTest` includes `ActiveJob::TestHelper` module by default.
186
+ * Add an option to disable logging of the job arguments when enqueuing and executing the job.
200
187
 
201
- *Ricardo Díaz*
188
+ class SensitiveJob < ApplicationJob
189
+ self.log_arguments = false
202
190
 
203
- * Added `enqueue_retry.active_job`, `retry_stopped.active_job`, and `discard.active_job` hooks.
191
+ def perform(my_sensitive_argument)
192
+ end
193
+ end
204
194
 
205
- *steves*
195
+ When dealing with sensitive arguments as password and tokens it is now possible to configure the job
196
+ to not put the sensitive argument in the logs.
206
197
 
207
- * Allow `assert_performed_with` to be called without a block.
198
+ *Rafael Mendonça França*
208
199
 
209
- *bogdanvlviv*
200
+ * Changes in `queue_name_prefix` of a job no longer affects all other jobs.
210
201
 
211
- * Execution of `assert_performed_jobs`, and `assert_no_performed_jobs`
212
- without a block should respect passed `:except`, `:only`, and `:queue` options.
202
+ Fixes #37084.
213
203
 
214
- *bogdanvlviv*
204
+ *Lucas Mansur*
215
205
 
216
- * Allow `:queue` option to job assertions and helpers.
217
-
218
- *bogdanvlviv*
219
-
220
- * Allow `perform_enqueued_jobs` to be called without a block.
221
-
222
- Performs all of the jobs that have been enqueued up to this point in the test.
206
+ * Allow `Class` and `Module` instances to be serialized.
223
207
 
224
208
  *Kevin Deisz*
225
209
 
226
- * Move `enqueue`/`enqueue_at` notifications to an around callback.
227
-
228
- Improves timing accuracy over the old after callback by including
229
- time spent writing to the adapter's IO implementation.
230
-
231
- *Zach Kemp*
232
-
233
- * Allow call `assert_enqueued_with` with no block.
234
-
235
- Example:
236
- ```
237
- def test_assert_enqueued_with
238
- MyJob.perform_later(1,2,3)
239
- assert_enqueued_with(job: MyJob, args: [1,2,3], queue: 'low')
240
-
241
- MyJob.set(wait_until: Date.tomorrow.noon).perform_later
242
- assert_enqueued_with(job: MyJob, at: Date.tomorrow.noon)
243
- end
244
- ```
245
-
246
- *bogdanvlviv*
247
-
248
- * Allow passing multiple exceptions to `retry_on`, and `discard_on`.
249
-
250
- *George Claghorn*
210
+ * Log potential matches in `assert_enqueued_with` and `assert_performed_with`.
251
211
 
252
- * Pass the error instance as the second parameter of block executed by `discard_on`.
212
+ *Gareth du Plooy*
253
213
 
254
- Fixes #32853.
214
+ * Add `at` argument to the `perform_enqueued_jobs` test helper.
255
215
 
256
- *Yuji Yaginuma*
216
+ *John Crepezzi*, *Eileen Uchitelle*
257
217
 
258
- * Remove support for Qu gem.
259
-
260
- Reasons are that the Qu gem wasn't compatible since Rails 5.1,
261
- gem development was stopped in 2014 and maintainers have
262
- confirmed its demise. See issue #32273
263
-
264
- *Alberto Almagro*
265
-
266
- * Add support for timezones to Active Job.
267
-
268
- Record what was the current timezone in effect when the job was
269
- enqueued and then restore when the job is executed in same way
270
- that the current locale is recorded and restored.
218
+ * `assert_enqueued_with` and `assert_performed_with` can now test jobs with relative delay.
271
219
 
272
- *Andrew White*
220
+ *Vlado Cingel*
273
221
 
274
- * Rails 6 requires Ruby 2.5.0 or newer.
222
+ * Add jitter to `ActiveJob::Exceptions.retry_on`.
275
223
 
276
- *Jeremy Daer*, *Kasper Timm Hansen*
224
+ `ActiveJob::Exceptions.retry_on` now uses a random amount of jitter in order to
225
+ prevent the [thundering herd effect](https://en.wikipedia.org/wiki/Thundering_herd_problem). Defaults to
226
+ 15% (represented as 0.15) but overridable via the `:jitter` option when using `retry_on`.
227
+ Jitter is applied when an `Integer`, `ActiveSupport::Duration` or `:exponentially_longer`, is passed to the `wait` argument in `retry_on`.
277
228
 
278
- * Add support to define custom argument serializers.
229
+ ```ruby
230
+ retry_on(MyError, wait: :exponentially_longer, jitter: 0.30)
231
+ ```
279
232
 
280
- *Evgenii Pecherkin*, *Rafael Mendonça França*
233
+ *Anthony Ross*
281
234
 
282
235
 
283
- Please check [5-2-stable](https://github.com/rails/rails/blob/5-2-stable/activejob/CHANGELOG.md) for previous changes.
236
+ Please check [6-0-stable](https://github.com/rails/rails/blob/6-0-stable/activejob/CHANGELOG.md) for previous changes.
data/MIT-LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2014-2019 David Heinemeier Hansson
1
+ Copyright (c) 2014-2022 David Heinemeier Hansson
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
@@ -18,4 +18,3 @@ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
18
  LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
19
  OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
20
  WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21
-
data/README.md CHANGED
@@ -95,9 +95,6 @@ their gem, or as a stand-alone gem. For discussion about this see the
95
95
  following PRs: [23311](https://github.com/rails/rails/issues/23311#issuecomment-176275718),
96
96
  [21406](https://github.com/rails/rails/pull/21406#issuecomment-138813484), and [#32285](https://github.com/rails/rails/pull/32285).
97
97
 
98
- ## Auxiliary gems
99
-
100
- * [activejob-stats](https://github.com/seuros/activejob-stats)
101
98
 
102
99
  ## Download and installation
103
100
 
@@ -111,6 +108,7 @@ Source code can be downloaded as part of the Rails project on GitHub:
111
108
 
112
109
  * https://github.com/rails/rails/tree/main/activejob
113
110
 
111
+
114
112
  ## License
115
113
 
116
114
  Active Job is released under the MIT license:
@@ -8,7 +8,9 @@ require "active_job/enqueuing"
8
8
  require "active_job/execution"
9
9
  require "active_job/callbacks"
10
10
  require "active_job/exceptions"
11
+ require "active_job/log_subscriber"
11
12
  require "active_job/logging"
13
+ require "active_job/instrumentation"
12
14
  require "active_job/timezones"
13
15
  require "active_job/translation"
14
16
 
@@ -68,6 +70,7 @@ module ActiveJob #:nodoc:
68
70
  include Callbacks
69
71
  include Exceptions
70
72
  include Logging
73
+ include Instrumentation
71
74
  include Timezones
72
75
  include Translation
73
76
 
@@ -1,6 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "active_support/callbacks"
4
+ require "active_support/core_ext/object/with_options"
5
+ require "active_support/core_ext/module/attribute_accessors"
4
6
 
5
7
  module ActiveJob
6
8
  # = Active Job Callbacks
@@ -27,16 +29,25 @@ module ActiveJob
27
29
  end
28
30
 
29
31
  included do
30
- define_callbacks :perform
31
- define_callbacks :enqueue
32
+ class_attribute :return_false_on_aborted_enqueue, instance_accessor: false, instance_predicate: false, default: false
33
+ singleton_class.deprecate :return_false_on_aborted_enqueue, :return_false_on_aborted_enqueue=
34
+ cattr_accessor :skip_after_callbacks_if_terminated, instance_accessor: false, default: false
32
35
 
33
- class_attribute :return_false_on_aborted_enqueue, instance_accessor: false, instance_predicate: false
34
- self.return_false_on_aborted_enqueue = false
36
+ with_options(skip_after_callbacks_if_terminated: skip_after_callbacks_if_terminated) do
37
+ define_callbacks :perform
38
+ define_callbacks :enqueue
39
+ end
35
40
  end
36
41
 
37
42
  # These methods will be included into any Active Job object, adding
38
43
  # callbacks for +perform+ and +enqueue+ methods.
39
44
  module ClassMethods
45
+ def inherited(klass)
46
+ klass.get_callbacks(:enqueue).config[:skip_after_callbacks_if_terminated] = skip_after_callbacks_if_terminated
47
+ klass.get_callbacks(:perform).config[:skip_after_callbacks_if_terminated] = skip_after_callbacks_if_terminated
48
+ super
49
+ end
50
+
40
51
  # Defines a callback that will get called right before the
41
52
  # job's perform method is executed.
42
53
  #
@@ -91,6 +102,19 @@ module ActiveJob
91
102
  # end
92
103
  # end
93
104
  #
105
+ # You can access the return value of the job only if the execution wasn't halted.
106
+ #
107
+ # class VideoProcessJob < ActiveJob::Base
108
+ # around_perform do |job, block|
109
+ # value = block.call
110
+ # puts value # => "Hello World!"
111
+ # end
112
+ #
113
+ # def perform
114
+ # "Hello World!"
115
+ # end
116
+ # end
117
+ #
94
118
  def around_perform(*filters, &blk)
95
119
  set_callback(:perform, :around, *filters, &blk)
96
120
  end
@@ -154,5 +178,21 @@ module ActiveJob
154
178
  set_callback(:enqueue, :around, *filters, &blk)
155
179
  end
156
180
  end
181
+
182
+ private
183
+ def halted_callback_hook(_filter, name) # :nodoc:
184
+ return super unless %i(enqueue perform).include?(name.to_sym)
185
+ callbacks = public_send("_#{name}_callbacks")
186
+
187
+ if !self.class.skip_after_callbacks_if_terminated && callbacks.any? { |c| c.kind == :after }
188
+ ActiveSupport::Deprecation.warn(<<~EOM)
189
+ In Rails 7.0, `after_enqueue`/`after_perform` callbacks no longer run if `before_enqueue`/`before_perform` respectively halts with `throw :abort`.
190
+ To enable this behavior, uncomment the `config.active_job.skip_after_callbacks_if_terminated` config
191
+ in the new 6.1 framework defaults initializer.
192
+ EOM
193
+ end
194
+
195
+ super
196
+ end
157
197
  end
158
198
  end
@@ -85,7 +85,7 @@ module ActiveJob
85
85
  @priority = self.class.priority
86
86
  @executions = 0
87
87
  @exception_executions = {}
88
- @timezone = Time.zone.try(:name)
88
+ @timezone = Time.zone&.name
89
89
  end
90
90
  ruby2_keywords(:initialize) if respond_to?(:ruby2_keywords, true)
91
91
 
@@ -142,7 +142,7 @@ module ActiveJob
142
142
  self.executions = job_data["executions"]
143
143
  self.exception_executions = job_data["exception_executions"]
144
144
  self.locale = job_data["locale"] || I18n.locale.to_s
145
- self.timezone = job_data["timezone"] || Time.zone.try(:name)
145
+ self.timezone = job_data["timezone"] || Time.zone&.name
146
146
  self.enqueued_at = job_data["enqueued_at"]
147
147
  end
148
148
 
@@ -54,9 +54,9 @@ module ActiveJob
54
54
 
55
55
  run_callbacks :enqueue do
56
56
  if scheduled_at
57
- self.class.queue_adapter.enqueue_at self, scheduled_at
57
+ queue_adapter.enqueue_at self, scheduled_at
58
58
  else
59
- self.class.queue_adapter.enqueue self
59
+ queue_adapter.enqueue self
60
60
  end
61
61
 
62
62
  successfully_enqueued = true
@@ -65,17 +65,7 @@ module ActiveJob
65
65
  if successfully_enqueued
66
66
  self
67
67
  else
68
- if self.class.return_false_on_aborted_enqueue
69
- false
70
- else
71
- ActiveSupport::Deprecation.warn(
72
- "Rails 6.1 will return false when the enqueuing is aborted. Make sure your code doesn't depend on it" \
73
- " returning the instance of the job and set `config.active_job.return_false_on_aborted_enqueue = true`" \
74
- " to remove the deprecations."
75
- )
76
-
77
- self
78
- end
68
+ false
79
69
  end
80
70
  end
81
71
  end