chronofage 0.0.9 → 0.0.10

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
  SHA1:
3
- metadata.gz: 77dd2e709fcf6a264c35626d40beedfcdd2d3cd6
4
- data.tar.gz: 726fd2120e7c40be39075d604af5cbbcbcf8f6a8
3
+ metadata.gz: f8bb897135e62e356a39a38006623bf485e4ada7
4
+ data.tar.gz: 1ac2a36a2bc725393fe033ead08c8562e57f2007
5
5
  SHA512:
6
- metadata.gz: 8c2180287e87f045dbd3d9c53dc6148832041efd41b91ba9ad5a513cda6dfb48bd282c37d28662c4cb9c1207941ce43d50a90e0a8420942366589d7447d6fc0d
7
- data.tar.gz: 7c78d45dcdaad24cfdbfa3fd27012ee22951854d8f40090e27941d7aa8bbb23ff836dfd8a9c4fe7f6dfe348b6020ebe4c0c9b56b62c59eb3208d7182c7584a02
6
+ metadata.gz: 51ddf80992daedffb80c273acf138801ebdc0c0a1003167a1daf5f9ca0ff1b9a89bc7359f0912aedf63ec0f078e12112cd2fbb942d9871ebcb1cac1bb18b12b4
7
+ data.tar.gz: db5d7cfec8a8dd652bac745401eef288817627f9817908859d5f79037d02f2aa75c18f188f9b7da704155ca571e9cff178343798b1781fae04ce5a99050be222
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- chronofage (0.0.6)
4
+ chronofage (0.0.10)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -9,8 +9,11 @@ module Chronofage
9
9
  ActiveRecord::Base.transaction do
10
10
  ActiveRecord::Base.connection.execute('LOCK chronofage_jobs IN ACCESS EXCLUSIVE MODE')
11
11
 
12
- ready.where(queue_name: queue_name).order(priority: :asc).first.tap do |job|
13
- job.started! if job.present? && job.concurrents.count < concurrency
12
+ job = ready.where(queue_name: queue_name).order(priority: :asc).first
13
+ if job.present? && job.concurrents.count < concurrency
14
+ job
15
+ else
16
+ nil
14
17
  end
15
18
  end
16
19
  end
@@ -1,3 +1,3 @@
1
1
  module Chronofage
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chronofage
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Goya