ci-queue 0.13.0 → 0.13.1

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: d494a80d73d0f5f6d8b478f30b40b8dc2ed90e24031ca6ae96dade3a1995a75e
4
- data.tar.gz: 4504d20539f933366c50f96b094cbc0ae3623556d62516b763dd98f5a1c305df
3
+ metadata.gz: b637f920491c351467f124c9594ecdfbc88ae18069be24b0d9467179372cbf61
4
+ data.tar.gz: e59da6502c2ca3c35565d29704e6d7a11d3d67cabe57fdfa1d7eca7d45214539
5
5
  SHA512:
6
- metadata.gz: 632de17b6e079142195e34d4b9ac0e3754091f786a430f3e0e82ee282fb4d7b7823c89b8c3ab30c397f228c80b37575420affc34da8f0b1ef5fe23f7e325494c
7
- data.tar.gz: 00fa21726fcd0c584af82ffc32fa6a32fc78dbe0672ec2916350890e0c9fa6a00205af9a195e7382c3518183c6d63b9745106b6f1255b5672ab121f34f64f712
6
+ metadata.gz: bd16d11c056346838e4244c831c421fdaa4aa58ed81e228727cb258cc9cdcf0dedae69500a005ae284a5ea6b9f92d5763966311c68b9b505cac196fff5a77e70
7
+ data.tar.gz: d338a6fcb7eb8757a0d595eec7383f8d1786b70ade4d1bca7da55384af7ee9a68ac4fafc0084f868e0b92db6682d06d41159f92df4e0830ee651a7f68f0679fe
@@ -3,6 +3,11 @@ require 'ci/queue/static'
3
3
  module CI
4
4
  module Queue
5
5
  module Redis
6
+ CONNECTION_ERRORS = [
7
+ ::Redis::BaseConnectionError,
8
+ ::SocketError, # https://github.com/redis/redis-rb/pull/631
9
+ ].freeze
10
+
6
11
  ReservationError = Class.new(StandardError)
7
12
 
8
13
  class << self
@@ -51,7 +56,7 @@ module CI
51
56
  sleep 0.05
52
57
  end
53
58
  end
54
- rescue ::Redis::BaseConnectionError
59
+ rescue *CONNECTION_ERRORS
55
60
  end
56
61
 
57
62
  def retry_queue
@@ -148,7 +153,7 @@ module CI
148
153
  end
149
154
  end
150
155
  register
151
- rescue ::Redis::BaseConnectionError
156
+ rescue *CONNECTION_ERRORS
152
157
  raise if @master
153
158
  end
154
159
 
@@ -1,6 +1,6 @@
1
1
  module CI
2
2
  module Queue
3
- VERSION = '0.13.0'
3
+ VERSION = '0.13.1'
4
4
  DEV_SCRIPTS_ROOT = ::File.expand_path('../../../../../redis', __FILE__)
5
5
  RELEASE_SCRIPTS_ROOT = ::File.expand_path('../redis', __FILE__)
6
6
  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.13.0
4
+ version: 0.13.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jean Boussier
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-04-23 00:00:00.000000000 Z
11
+ date: 2018-05-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ansi