delayed_job_active_record 4.1.10 → 4.1.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/delayed_job_active_record.gemspec +2 -2
- data/lib/delayed/backend/active_record.rb +2 -2
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dd5723273f3b1453151e1f9e19f75b24a5c2bbe004684fe6572af9f07638475d
|
4
|
+
data.tar.gz: fc58cf8535d8f50f854501983b64e42f6976faa56e83ebdfbbbe586a161cbfa3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 430e92cfb9dcf7e53060b80d810b17bbc0d326c53f4c548b11ce55ddc800c6d6688ebf6a457f1ede4c902cb18cfe5126575c619f0b8babc2007ab6c336233898
|
7
|
+
data.tar.gz: 813f35b0e6a091f3da1df84d79a34af32258b9ef050c67c639370bb169171e5cf49e92a89c1133d59380a0e46d6fa65427a2c27927dd244dfc95cbe23aaef565
|
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
**If you're viewing this at https://github.com/collectiveidea/delayed_job_active_record,
|
2
2
|
you're reading the documentation for the master branch.
|
3
3
|
[View documentation for the latest release
|
4
|
-
(4.1.
|
4
|
+
(4.1.11).](https://github.com/collectiveidea/delayed_job_active_record/tree/v4.1.11)**
|
5
5
|
|
6
6
|
# DelayedJob ActiveRecord Backend
|
7
7
|
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
4
|
spec.name = "delayed_job_active_record"
|
5
|
-
spec.version = "4.1.
|
5
|
+
spec.version = "4.1.11"
|
6
6
|
spec.summary = "ActiveRecord backend for DelayedJob"
|
7
7
|
spec.description = "ActiveRecord backend for Delayed::Job, originally authored by Tobias Lütke"
|
8
8
|
|
@@ -17,6 +17,6 @@ Gem::Specification.new do |spec|
|
|
17
17
|
|
18
18
|
spec.metadata = { "rubygems_mfa_required" => "true" }
|
19
19
|
|
20
|
-
spec.add_dependency "activerecord", [">= 3.0", "<
|
20
|
+
spec.add_dependency "activerecord", [">= 3.0", "< 9.0"]
|
21
21
|
spec.add_dependency "delayed_job", [">= 3.0", "< 5"]
|
22
22
|
end
|
@@ -119,7 +119,7 @@ module Delayed
|
|
119
119
|
# This is our old fashion, tried and true, but possibly slower lookup
|
120
120
|
# Instead of reading the entire job record for our detect loop, we select only the id,
|
121
121
|
# and only read the full job record after we've successfully locked the job.
|
122
|
-
# This can have a
|
122
|
+
# This can have a noticeable impact on large read_ahead configurations and large payload jobs.
|
123
123
|
ready_scope.limit(worker.read_ahead).select(:id).detect do |job|
|
124
124
|
count = ready_scope.where(id: job.id).update_all(locked_at: now, locked_by: worker.name)
|
125
125
|
count == 1 && job.reload
|
@@ -184,7 +184,7 @@ module Delayed
|
|
184
184
|
|
185
185
|
# Get the current time (GMT or local depending on DB)
|
186
186
|
# Note: This does not ping the DB to get the time, so all your clients
|
187
|
-
# must have
|
187
|
+
# must have synchronized clocks.
|
188
188
|
def self.db_time_now
|
189
189
|
if Time.zone
|
190
190
|
Time.zone.now
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: delayed_job_active_record
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.1.
|
4
|
+
version: 4.1.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Genord II
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2024-
|
14
|
+
date: 2024-11-09 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: activerecord
|
@@ -22,7 +22,7 @@ dependencies:
|
|
22
22
|
version: '3.0'
|
23
23
|
- - "<"
|
24
24
|
- !ruby/object:Gem::Version
|
25
|
-
version: '
|
25
|
+
version: '9.0'
|
26
26
|
type: :runtime
|
27
27
|
prerelease: false
|
28
28
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -32,7 +32,7 @@ dependencies:
|
|
32
32
|
version: '3.0'
|
33
33
|
- - "<"
|
34
34
|
- !ruby/object:Gem::Version
|
35
|
-
version: '
|
35
|
+
version: '9.0'
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: delayed_job
|
38
38
|
requirement: !ruby/object:Gem::Requirement
|
@@ -95,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
97
|
requirements: []
|
98
|
-
rubygems_version: 3.5.
|
98
|
+
rubygems_version: 3.5.22
|
99
99
|
signing_key:
|
100
100
|
specification_version: 4
|
101
101
|
summary: ActiveRecord backend for DelayedJob
|