ci-queue 0.33.0 → 0.34.0

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: bd7d0b468f0b411c8adc1a2803ed277a485b8e37b85b954fae3bb18ae2c3be2f
4
- data.tar.gz: afc3927215a99f3e874cac77d2c89e6ed2f97e86eabf9d3890b42f8e652a5746
3
+ metadata.gz: c8f29e9746a1f72fb24fe886360f2d1b5699dd71adfd9bf76207138530d093e6
4
+ data.tar.gz: 965eef8b0fc0d3c8f5d57c7169d07ecca8dda5926fef6744ca106c185aa9563f
5
5
  SHA512:
6
- metadata.gz: 5ef912355c5eb0441f91b1db2386f54d62641187ac518701ead368fb1d013b3ae2a1dadcbce75428caa8dbb9456c8db2fb7d90cefccebd685eebbd565b130af9
7
- data.tar.gz: 0b48cb5f122f5784c840d8c172804c105a4bd70909853e83b1a1b75a6a7719aecf07bb381d48b56fe186b45f0a10fd556c5becc8db4b7fe8447552d878262bb6
6
+ metadata.gz: 39cf4530f2030dd2a9e9944c7e2df5e3f5dd63dee11ee41d840c42c774abce5a74205a04c74ad435ce4766369cb20347948fab640df0c70f1ded6a5654aef19f
7
+ data.tar.gz: 95bfa2a021df6d49fcd3104a647f99e5688d5160fd65bc1b096d4fdf6f0b2b06a3eeaa37caf8eb5bbb2b488a09b64742bcb848ebcf74fdee181dc51cb2143e0c
@@ -20,6 +20,11 @@ module CI
20
20
  @config = config
21
21
  @progress = 0
22
22
  @total = tests.size
23
+ @shutdown = false
24
+ end
25
+
26
+ def shutdown!
27
+ @shutdown = true
23
28
  end
24
29
 
25
30
  def distributed?
@@ -64,7 +69,7 @@ module CI
64
69
  end
65
70
 
66
71
  def poll
67
- while config.circuit_breakers.none?(&:open?) && !max_test_failed? && test = @queue.shift
72
+ while !@shutdown && config.circuit_breakers.none?(&:open?) && !max_test_failed? && test = @queue.shift
68
73
  yield index.fetch(test)
69
74
  end
70
75
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  module CI
4
4
  module Queue
5
- VERSION = '0.33.0'
5
+ VERSION = '0.34.0'
6
6
  DEV_SCRIPTS_ROOT = ::File.expand_path('../../../../../redis', __FILE__)
7
7
  RELEASE_SCRIPTS_ROOT = ::File.expand_path('../redis', __FILE__)
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ci-queue
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.33.0
4
+ version: 0.34.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jean Boussier
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-07-27 00:00:00.000000000 Z
11
+ date: 2023-08-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -239,7 +239,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
239
239
  - !ruby/object:Gem::Version
240
240
  version: '0'
241
241
  requirements: []
242
- rubygems_version: 3.4.16
242
+ rubygems_version: 3.4.17
243
243
  signing_key:
244
244
  specification_version: 4
245
245
  summary: Distribute tests over many workers using a queue