delayed_job_active_record 4.1.3 → 4.1.4.beta1

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: 3bdebcffb191581b743a334926d45c01184fbe0a58a906741b0f7f73118375bc
4
- data.tar.gz: fdc7e1c5c74cd0f5beef00a61d62daaf3bf91d2ca631248a7a2a7382f3d420d9
3
+ metadata.gz: 0c6783d40adcc7aa086233cf1e3cc66e95ddddc0c4dd0bd9f2174a445ff62a80
4
+ data.tar.gz: 7fe5f7c7b441e86faf6bd8176efa5b459ec61d0dc4d04b17c13c6d79f3b7a338
5
5
  SHA512:
6
- metadata.gz: 443633226e38e35bf47be09f548b9bdc1aea188f7c74244b32d8cbbd6b18cac0fd04bffac8540f075e3cc18cd737937f7049a16cc39a363be4fea6cfc9097471
7
- data.tar.gz: c479df41fa2326aef35d02771336c17ba5ce956aa1c006769b1a67f4282e716c161d723cfd479178f24bbc21b5fdf6183e656a867d3221cf8753d21c7b800cbd
6
+ metadata.gz: bf94bb9848eaaa4900e06149d2a9fb88efa72ad0c08463ac0df5a613963b8c663c05538376894ecff47d713da2c68bf729e577a53856c7b6575c3c6cb0248b29
7
+ data.tar.gz: 9f6f036d720c4ac9a551c3f4beac023fc154c8d15043110e9092bcb69b507d74121528735567aeea72ed879eb9f74ad17390f15199127c9d172999ac0b562191
@@ -1,5 +1,5 @@
1
1
  Gem::Specification.new do |spec|
2
- spec.add_dependency "activerecord", [">= 3.0", "< 5.3"]
2
+ spec.add_dependency "activerecord", [">= 3.0", "< 6.1"]
3
3
  spec.add_dependency "delayed_job", [">= 3.0", "< 5"]
4
4
  spec.authors = ["Brian Ryckbost", "Matt Griffin", "Erik Michaels-Ober"]
5
5
  spec.description = "ActiveRecord backend for Delayed::Job, originally authored by Tobias Lütke"
@@ -10,5 +10,5 @@ Gem::Specification.new do |spec|
10
10
  spec.name = "delayed_job_active_record"
11
11
  spec.require_paths = ["lib"]
12
12
  spec.summary = "ActiveRecord backend for DelayedJob"
13
- spec.version = "4.1.3"
13
+ spec.version = "4.1.4.beta1"
14
14
  end
@@ -13,6 +13,7 @@ module Delayed
13
13
  if !(val == :optimized_sql || val == :default_sql)
14
14
  raise ArgumentError, "allowed values are :optimized_sql or :default_sql"
15
15
  end
16
+
16
17
  @reserve_sql_strategy = val
17
18
  end
18
19
  end
@@ -141,6 +142,7 @@ module Delayed
141
142
  # UPDATE...LIMIT. It uses separate queries to lock and return the job
142
143
  count = ready_scope.limit(1).update_all(locked_at: now, locked_by: worker.name)
143
144
  return nil if count == 0
145
+
144
146
  where(locked_at: now, locked_by: worker.name, failed_at: nil).first
145
147
  end
146
148
 
@@ -154,6 +156,7 @@ module Delayed
154
156
  sql = "UPDATE #{quoted_table_name} SET locked_at = ?, locked_by = ? WHERE id IN (#{subquery_sql})"
155
157
  count = connection.execute(sanitize_sql([sql, now, worker.name]))
156
158
  return nil if count == 0
159
+
157
160
  # MSSQL JDBC doesn't support OUTPUT INSERTED.* for returning a result set, so query locked row
158
161
  where(locked_at: now, locked_by: worker.name, failed_at: nil).first
159
162
  end
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.3
4
+ version: 4.1.4.beta1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Ryckbost
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2018-04-13 00:00:00.000000000 Z
13
+ date: 2019-02-18 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activerecord
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '3.0'
22
22
  - - "<"
23
23
  - !ruby/object:Gem::Version
24
- version: '5.3'
24
+ version: '6.1'
25
25
  type: :runtime
26
26
  prerelease: false
27
27
  version_requirements: !ruby/object:Gem::Requirement
@@ -31,7 +31,7 @@ dependencies:
31
31
  version: '3.0'
32
32
  - - "<"
33
33
  - !ruby/object:Gem::Version
34
- version: '5.3'
34
+ version: '6.1'
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: delayed_job
37
37
  requirement: !ruby/object:Gem::Requirement
@@ -88,9 +88,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
88
88
  version: '0'
89
89
  required_rubygems_version: !ruby/object:Gem::Requirement
90
90
  requirements:
91
- - - ">="
91
+ - - ">"
92
92
  - !ruby/object:Gem::Version
93
- version: '0'
93
+ version: 1.3.1
94
94
  requirements: []
95
95
  rubyforge_project:
96
96
  rubygems_version: 2.7.6