ci-queue 0.50.0 → 0.51.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: e1ecedc67f9ee4f238a84a54fd8744c735ca3a7921da2cf45f7c28503449d754
4
- data.tar.gz: c77c0f29f913c255d7832ccd4c033020752a64e3e7618f2ab5f7848264bfc135
3
+ metadata.gz: 54b9a3eb96743e79e564f0a0c90ff4923c4c2282e1f7926e40c575a8de7c9e94
4
+ data.tar.gz: 27cb858f6f2ca20dc7649ff4d1ab040896c347d0acf7093b0f9bb3fb03abd878
5
5
  SHA512:
6
- metadata.gz: ef3dad131865136444f87e12d402132c501ab0f465a69fc79dafb4d52a8120dbeb13633e2199ca5a482be7d39c2b71ddd480e401ac5ff6d3f7f400438a8025f0
7
- data.tar.gz: c0a5396a66b11f6de5a2d733a62112e756c2ca2f45dc254996cc65799760790510a68209225a4ab59df4b49b77602d96b7f4ac76db0521a035358842a53d00f9
6
+ metadata.gz: 99c4f39dbf0d287d87b283d994c5c14cd8b7a49d3e426a9c9fbf9b752cb4818a7c89a64a4526318717bba7a0759fce39c843f5c26df894f7f0d427c1b9d2f9be
7
+ data.tar.gz: adaaff3e53cedfcb8c2e4446f079a6cbd75fc7c56c1b7db1bf99bf820de06f7eb19bf16d68517ce65cfcfa908d83785ccebf08727ae13533e4f1e8ea746ca013
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ci-queue (0.50.0)
4
+ ci-queue (0.51.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -139,6 +139,8 @@ module CI
139
139
 
140
140
  def wait_for_master(timeout: 30)
141
141
  return true if master?
142
+ return true if queue_initialized?
143
+
142
144
  (timeout * 10 + 1).to_i.times do
143
145
  if queue_initialized?
144
146
  return true
@@ -146,6 +148,7 @@ module CI
146
148
  sleep 0.1
147
149
  end
148
150
  end
151
+
149
152
  raise LostMaster, "The master worker is still `#{master_status}` after #{timeout} seconds waiting."
150
153
  end
151
154
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  module CI
4
4
  module Queue
5
- VERSION = '0.50.0'
5
+ VERSION = '0.51.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.50.0
4
+ version: 0.51.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: 2024-04-23 00:00:00.000000000 Z
11
+ date: 2024-04-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler