ci-queue 0.38.0 → 0.39.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: 2d2c7f2bbcfac416404fdccc8e0ef588c4ea7e118e1df22ec2e9ab35df91b07e
4
- data.tar.gz: d0ef379649b9918571d62b38c9c891403b65739f125a6d895dfba32f7f4ba327
3
+ metadata.gz: b107915399e844aa0692d7734747517860631865a6552d4ef3ca4ca8e4be70c5
4
+ data.tar.gz: ab35800b2df6a59fec8f6af18e3ab6240cc09818bad1de8fcb23f344541455fc
5
5
  SHA512:
6
- metadata.gz: b01ba206b10a05262680a9e2b199b5710b584e36b746ae521d4bcafcb9e324c9abc0b5704a7e634393cdeca3fe32bfb2cfe3e6aa4489114907cb1638b428ab82
7
- data.tar.gz: 14dde136243566c2d1a9c6e0bb2a594921f04399bcde2598ad95efd0127288e345b237e30d4e057d2038a8c236e0e723ae5b4b2c00c9d258ad13637915f82288
6
+ metadata.gz: 53a25b74ed491b2a1d62b8579f2416c7376ba1eaad0831bbb09a45a145177d68e4ac3b86de971e1645cdbabe74d1405109cc325e25932a130099f0996a0058c9
7
+ data.tar.gz: 499841246ebd2364397b54a068c033d90b0a5aa670e116678e51002af0eb3c6664bd4585b4e40c841714a2eb969d388707ae8b6a12db60d4ed22269c08c7aa85
@@ -13,7 +13,12 @@ module CI
13
13
 
14
14
  def initialize(redis_url, config)
15
15
  @redis_url = redis_url
16
- @redis = ::Redis.new(url: redis_url)
16
+ @redis = ::Redis.new(
17
+ url: redis_url,
18
+ # Booting a CI worker is costly, so in case of a Redis blip,
19
+ # it makes sense to retry for a while before giving up.
20
+ reconnect_attempts: [0, 0, 0.1, 0.5, 1, 3, 5],
21
+ )
17
22
  @config = config
18
23
  end
19
24
 
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ gem 'redis', '>= 5'
3
4
  require 'redis'
4
5
  require 'ci/queue/redis/build_record'
5
6
  require 'ci/queue/redis/base'
@@ -2,7 +2,7 @@
2
2
 
3
3
  module CI
4
4
  module Queue
5
- VERSION = '0.38.0'
5
+ VERSION = '0.39.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.38.0
4
+ version: 0.39.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-10-24 00:00:00.000000000 Z
11
+ date: 2023-12-11 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.21
242
+ rubygems_version: 3.4.22
243
243
  signing_key:
244
244
  specification_version: 4
245
245
  summary: Distribute tests over many workers using a queue