simpleci-worker 0.1.1 → 0.1.2

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
  SHA1:
3
- metadata.gz: e66d46f2770aa096322e29b5ab18aa46f80e1ce3
4
- data.tar.gz: 7a6f5cea30ab41f766680439fe16d44a46495dd1
3
+ metadata.gz: e0160576a6f99b17570fd7e4105d4196df48b94b
4
+ data.tar.gz: 01aca32edce7d70828f9e1f66cf68d2895e02dff
5
5
  SHA512:
6
- metadata.gz: 60d297e2af10083aa26dd470997dbc09875083176fdf870c09de780bb42526f1bd26b810602b637e519c855fd965cdee62ef119ea1b617f693d7cc57c00dafea
7
- data.tar.gz: cbc25d9178cde3e2db11e9f972b132ea24e2bb1afcbdad64caabd58e5adf15b33cd5abc4c9ea3167a1c90e18c758e1ed72f5bde6d8c8876b82f99269c2ff4524
6
+ metadata.gz: 29f24fe261b00489c6a2628e401e2420e3c0734cc27e790ac6b185e82cc514e244cf1b1e20c782b9103979f6a92367685fc28a17dda732876c24952016e48104
7
+ data.tar.gz: f9bd8109167221d6e5f88fcbca97f3090627d19121a695884d9e9585c291cb05dcba38d7996f88455168c5c6962dda6befeb246f48a0a87c9ada498c3490e121
data/lib/worker/queue.rb CHANGED
@@ -150,7 +150,7 @@ module Worker
150
150
  logger.info("Performed #{failures + successes} jobs in #{t2 - t1} seconds")
151
151
  end
152
152
 
153
- return if number_to_run <= 0
153
+ return if number_to_run && number_to_run <= 0
154
154
  sleep(poll_interval)
155
155
  end
156
156
  rescue StandardError => e
@@ -1,3 +1,3 @@
1
1
  module Worker
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simpleci-worker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Colin Walker