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 +4 -4
- data/lib/ci/queue/redis/worker.rb +7 -2
- data/lib/ci/queue/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b637f920491c351467f124c9594ecdfbc88ae18069be24b0d9467179372cbf61
|
4
|
+
data.tar.gz: e59da6502c2ca3c35565d29704e6d7a11d3d67cabe57fdfa1d7eca7d45214539
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
156
|
+
rescue *CONNECTION_ERRORS
|
152
157
|
raise if @master
|
153
158
|
end
|
154
159
|
|
data/lib/ci/queue/version.rb
CHANGED
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.
|
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
|
11
|
+
date: 2018-05-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ansi
|