activejob 7.1.0 → 7.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 06565d1267b4596e11732d12bd80c67c2c56804d5dc147e8d95aaa4e6ae76377
|
4
|
+
data.tar.gz: da0d32071a22e4db4011275e44c1feddba2a5812686c0ff5e8f813bdfc05e49e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 68d94c0c68bb56b61f558c8e03df5c888c1968348512995f00ea40dbb5eb84776244ace807e764573da394c2b4b9631c01dff57f14f4c8a64ccdf3ad9974c0d3
|
7
|
+
data.tar.gz: 13d3f3921e071c93e7b22b02338b616663a6fb79284cec4a3bce01caef46974f704cc660bb1da8801627584538baa11f74eca5c3ffe30abc669c9196faa254f7
|
data/CHANGELOG.md
CHANGED
data/lib/active_job/arguments.rb
CHANGED
@@ -98,7 +98,7 @@ module ActiveJob
|
|
98
98
|
Primitive serialization of BigDecimal job arguments is deprecated as it may serialize via .to_s using certain queue adapters.
|
99
99
|
Enable config.active_job.use_big_decimal_serializer to use BigDecimalSerializer instead, which will be mandatory in Rails 7.2.
|
100
100
|
|
101
|
-
Note that if
|
101
|
+
Note that if your application has multiple replicas, you should only enable this setting after successfully deploying your app to Rails 7.1 first.
|
102
102
|
This will ensure that during your deployment all replicas are capable of deserializing arguments serialized with BigDecimalSerializer.
|
103
103
|
MSG
|
104
104
|
return argument
|
@@ -76,7 +76,9 @@ module ActiveJob
|
|
76
76
|
def perform_start(event)
|
77
77
|
info do
|
78
78
|
job = event.payload[:job]
|
79
|
-
|
79
|
+
enqueue_info = job.enqueued_at.present? ? " enqueued at #{job.enqueued_at.utc.iso8601(9)}" : ""
|
80
|
+
|
81
|
+
"Performing #{job.class.name} (Job ID: #{job.job_id}) from #{queue_name(event)}" + enqueue_info + args_info(job)
|
80
82
|
end
|
81
83
|
end
|
82
84
|
subscribe_log_level :perform_start, :info
|
@@ -33,7 +33,7 @@ module ActiveJob
|
|
33
33
|
delay = timestamp - Time.current.to_f
|
34
34
|
JobWrapper.perform_in delay, job.serialize
|
35
35
|
else
|
36
|
-
raise NotImplementedError, "sucker_punch 1.0 does not support `
|
36
|
+
raise NotImplementedError, "sucker_punch 1.0 does not support `enqueue_at`. Please upgrade to version ~> 2.0.0 to enable this behavior."
|
37
37
|
end
|
38
38
|
end
|
39
39
|
|
@@ -54,15 +54,10 @@ module ActiveJob
|
|
54
54
|
queue_adapter_changed_jobs.each { |klass| klass.disable_test_adapter }
|
55
55
|
end
|
56
56
|
|
57
|
-
#
|
58
|
-
#
|
59
|
-
#
|
60
|
-
# ActiveJob::QueueAdapters::TestAdapter.
|
61
|
-
#
|
62
|
-
# Note: The adapter provided by this method must provide some additional
|
63
|
-
# methods from those expected of a standard ActiveJob::QueueAdapter
|
64
|
-
# in order to be used with the active job test helpers. Refer to
|
65
|
-
# ActiveJob::QueueAdapters::TestAdapter.
|
57
|
+
# Returns a queue adapter instance to use with all Active Job test helpers.
|
58
|
+
# By default, returns an instance of ActiveJob::QueueAdapters::TestAdapter.
|
59
|
+
# Override this method to specify a different adapter. The adapter must
|
60
|
+
# implement the same interface as ActiveJob::QueueAdapters::TestAdapter.
|
66
61
|
def queue_adapter_for_test
|
67
62
|
ActiveJob::QueueAdapters::TestAdapter.new
|
68
63
|
end
|
@@ -600,11 +595,12 @@ module ActiveJob
|
|
600
595
|
# assert_performed_jobs 1
|
601
596
|
# end
|
602
597
|
#
|
603
|
-
# If the +:at+ option is specified, then only
|
604
|
-
#
|
598
|
+
# If the +:at+ option is specified, then only jobs that have been enqueued
|
599
|
+
# to run at or before the given time will be performed. This includes jobs
|
600
|
+
# that have been enqueued without a time.
|
605
601
|
#
|
606
|
-
# If
|
607
|
-
#
|
602
|
+
# If queue_adapter_for_test is overridden to return a different adapter,
|
603
|
+
# +perform_enqueued_jobs+ will merely execute the block.
|
608
604
|
def perform_enqueued_jobs(only: nil, except: nil, queue: nil, at: nil, &block)
|
609
605
|
return flush_enqueued_jobs(only: only, except: except, queue: queue, at: at) unless block_given?
|
610
606
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activejob
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.1.
|
4
|
+
version: 7.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Heinemeier Hansson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-10
|
11
|
+
date: 2023-11-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 7.1.
|
19
|
+
version: 7.1.2
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 7.1.
|
26
|
+
version: 7.1.2
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: globalid
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -102,10 +102,10 @@ licenses:
|
|
102
102
|
- MIT
|
103
103
|
metadata:
|
104
104
|
bug_tracker_uri: https://github.com/rails/rails/issues
|
105
|
-
changelog_uri: https://github.com/rails/rails/blob/v7.1.
|
106
|
-
documentation_uri: https://api.rubyonrails.org/v7.1.
|
105
|
+
changelog_uri: https://github.com/rails/rails/blob/v7.1.2/activejob/CHANGELOG.md
|
106
|
+
documentation_uri: https://api.rubyonrails.org/v7.1.2/
|
107
107
|
mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
|
108
|
-
source_code_uri: https://github.com/rails/rails/tree/v7.1.
|
108
|
+
source_code_uri: https://github.com/rails/rails/tree/v7.1.2/activejob
|
109
109
|
rubygems_mfa_required: 'true'
|
110
110
|
post_install_message:
|
111
111
|
rdoc_options: []
|