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: ef89084a48b99025b4e7795eb8d841c35314954c6a4c823afbaeb3feebd75c69
4
- data.tar.gz: bfc57518d44975282b56bd0c3fd6cb189f9c9ea7ec090f249d80c5532f66d409
3
+ metadata.gz: 3f5c9ba10ccfbebd4da6625737ff4af58b9d2ca254331a81def33016eae463e4
4
+ data.tar.gz: f1cf811ad4acd515ab946c64524c4c6ec47b5aa472ca29029e16823af2eb80ab
5
5
  SHA512:
6
- metadata.gz: 889f0647e17dfb9f36d13604ef3a1639c192100afbb8b05590c7cd4fcc805605f4f851e9024ffb36645fe2f29d0a328a176d1629c2d491e344eef5566630f045
7
- data.tar.gz: 0addbe6110b507be793dcfa9be93c773a57ac0d89d77f57172e410974e5ad8348dbd616b6b3d607f3ef5baf4cfa5390142d162aaa8de5327777b909af2bf2310
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
 
@@ -1,3 +1,3 @@
1
1
  module SneakersHandlers
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
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.7
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: 2019-12-26 00:00:00.000000000 Z
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.1
141
+ rubygems_version: 3.0.3
142
142
  signing_key:
143
143
  specification_version: 4
144
144
  summary: Adds Handlers to use with Sneakers