sneakers_retry_handler 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/sneakers/handlers/delayed_retry.rb +1 -9
- data/lib/sneakers_retry_handler.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: 5bc978f6f7f709119b1dc87cd4110e06e8326869703a16647d86667d252b7a33
|
|
4
|
+
data.tar.gz: 0251ea8c50c70c81817e6bae82ba2b187fa84ab276779ce36524d29dae36b188
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 927783454ee1288ae837275ceb18360bf2d43a3b63f08bd888980b2608ba4d2807d0a59f5cdc640b457d4ad204e28e9dfd743756bae5e562086315c8937bd4a1
|
|
7
|
+
data.tar.gz: 8ba28ef70c852b593ef1d7edaac4c495b98a66b2af8f2cd0320015aa2a7b26750f0b9447dd348c76e3807ac156ca388abdf328e80e2b5954a63bd6f9b3ff3857
|
|
@@ -84,7 +84,6 @@ module Sneakers
|
|
|
84
84
|
error: reason.to_s,
|
|
85
85
|
num_attempts: num_attempts,
|
|
86
86
|
failed_at: Time.now.iso8601,
|
|
87
|
-
properties: props
|
|
88
87
|
}.tap do |hash|
|
|
89
88
|
if reason.is_a?(Exception)
|
|
90
89
|
hash[:error_class] = reason.class.to_s
|
|
@@ -95,14 +94,7 @@ module Sneakers
|
|
|
95
94
|
end
|
|
96
95
|
end
|
|
97
96
|
|
|
98
|
-
|
|
99
|
-
begin
|
|
100
|
-
JSON.parse(msg).merge(error_data: error_data).to_json
|
|
101
|
-
rescue
|
|
102
|
-
error_data.merge(payload: msg).to_json
|
|
103
|
-
end
|
|
104
|
-
|
|
105
|
-
@error_exchange.publish(data, routing_key: hdr.routing_key)
|
|
97
|
+
@error_exchange.publish(msg, routing_key: hdr.routing_key, headers: { error_data: error_data })
|
|
106
98
|
@channel.acknowledge(hdr.delivery_tag, false)
|
|
107
99
|
end
|
|
108
100
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sneakers_retry_handler
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ivan Bondarenko
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2019-
|
|
12
|
+
date: 2019-12-27 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: json
|