coney_island 0.11.2 → 0.11.3
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/coney_island/version.rb +1 -1
- data/lib/coney_island/worker.rb +13 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb5f33066b9bc6d6eb023c3e2d9078badefe3847
|
4
|
+
data.tar.gz: 6360c5d5ee7865c643c000722de1848afc9c68db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3379c592b226398c01c172ece55327704ef00efae5e8d0bd502073406ed241d9ef7273a4b5a22a0415c9292252d94baf247a492afff2c9921d8360b6915e03ce
|
7
|
+
data.tar.gz: dfb97960adf2014126aa7b66e5bf549d778e30d24a66706eaf357c5b5bfc936ea89eb9460af5fc0c7a47299fb47bb0ef1232c32d5135bbea766d2fdaf0f1fe0a
|
data/lib/coney_island/version.rb
CHANGED
data/lib/coney_island/worker.rb
CHANGED
@@ -117,20 +117,30 @@ module ConeyIsland
|
|
117
117
|
self.log.info("Connected to AMQP broker. Running #{AMQP::VERSION}")
|
118
118
|
connection.on_error do |conn, connection_close|
|
119
119
|
self.log.error "Handling a connection-level exception."
|
120
|
-
self.log.error
|
121
120
|
self.log.error "AMQP class id : #{connection_close.class_id}"
|
122
121
|
self.log.error "AMQP method id: #{connection_close.method_id}"
|
123
122
|
self.log.error "Status code : #{connection_close.reply_code}"
|
124
123
|
self.log.error "Error message : #{connection_close.reply_text}"
|
124
|
+
ConeyIsland.poke_the_badger({error_message: "ConeyIsland #{@ticket} Worker lost RabbitMQ Connection"}, connection_error: {
|
125
|
+
amqp_class: connection_close.class_id,
|
126
|
+
amqp_method: connection_close.method_id,
|
127
|
+
status_code: connection_close.reply_code,
|
128
|
+
message: connection_close.reply_text
|
129
|
+
})
|
125
130
|
end
|
126
131
|
@channel = AMQP::Channel.new(connection)
|
127
|
-
channel.on_error do |ch, channel_close|
|
132
|
+
@channel.on_error do |ch, channel_close|
|
128
133
|
self.log.error "Handling a channel-level exception."
|
129
|
-
self.log.error
|
130
134
|
self.log.error "AMQP class id : #{channel_close.class_id}"
|
131
135
|
self.log.error "AMQP method id: #{channel_close.method_id}"
|
132
136
|
self.log.error "Status code : #{channel_close.reply_code}"
|
133
137
|
self.log.error "Error message : #{channel_close.reply_text}"
|
138
|
+
ConeyIsland.poke_the_badger({error_message: "ConeyIsland #{@ticket} Worker lost RabbitMQ Channel"}, connection_error: {
|
139
|
+
amqp_class: channel_close.class_id,
|
140
|
+
amqp_method: channel_close.method_id,
|
141
|
+
status_code: channel_close.reply_code,
|
142
|
+
message: channel_close.reply_text
|
143
|
+
})
|
134
144
|
end
|
135
145
|
@exchange = @channel.topic('coney_island')
|
136
146
|
#Handle a lost connection to rabbitMQ
|