sneakers_handlers 0.0.7 → 0.0.8
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3f5c9ba10ccfbebd4da6625737ff4af58b9d2ca254331a81def33016eae463e4
|
4
|
+
data.tar.gz: f1cf811ad4acd515ab946c64524c4c6ec47b5aa472ca29029e16823af2eb80ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c51b50323d7a34c99a148fb554c410cbbc7b8f149c598fddd277f74052c8e57fd86c0fddc4e09bab483ca0ce2bebebb1961d65eb0533f7c6263994b30b9a1303
|
7
|
+
data.tar.gz: 6c97b385c06ed0d6b838d1502e747c26f1af1c25a68de2871b3c890106b569bb01f820302b8db460d5877bbc0d40c91de7f15955f396f4558eed4160f5b22b2c
|
@@ -83,8 +83,17 @@ module SneakersHandlers
|
|
83
83
|
end
|
84
84
|
|
85
85
|
acknowledge(delivery_info, properties, message)
|
86
|
+
rescue Bunny::ConnectionClosedError => e
|
87
|
+
log(level: :error, message: "msg=connection_closed_error, error='#{e.message}'")
|
88
|
+
channel.close if channel.open?
|
89
|
+
raise e
|
86
90
|
rescue => e
|
87
91
|
log(level: :error, message: "msg=unexpected_handler_error, error='#{e.message}'")
|
92
|
+
|
93
|
+
# In the case of an unhandled exception, we need to `nack` the message so
|
94
|
+
# it doesn't get stuck in the `unacked` state until this process dies.
|
95
|
+
channel.nack(delivery_info.delivery_tag, multiple = false, requeue = true) if channel.open?
|
96
|
+
|
88
97
|
raise e
|
89
98
|
end
|
90
99
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sneakers_handlers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Bohn, Abe Petrillo, Brian Storti
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-04-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sneakers
|
@@ -138,7 +138,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
138
138
|
- !ruby/object:Gem::Version
|
139
139
|
version: '0'
|
140
140
|
requirements: []
|
141
|
-
rubygems_version: 3.0.
|
141
|
+
rubygems_version: 3.0.3
|
142
142
|
signing_key:
|
143
143
|
specification_version: 4
|
144
144
|
summary: Adds Handlers to use with Sneakers
|