coney_island 0.11.2 → 0.11.3

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
  SHA1:
3
- metadata.gz: 25ee00823bc525865ba55d084aedbc1047135637
4
- data.tar.gz: aa95b4faf24acb3dc6e8cdcedd9a6a8a5d7412ea
3
+ metadata.gz: cb5f33066b9bc6d6eb023c3e2d9078badefe3847
4
+ data.tar.gz: 6360c5d5ee7865c643c000722de1848afc9c68db
5
5
  SHA512:
6
- metadata.gz: da2f56b1c9ece17f9d619366e3bd52a3a85338aa075c5a8c722b8459814f24816e8da3a4d64987e3ccda5e69e5cf06476671a6c0ab6698456ba20339b8fd8f04
7
- data.tar.gz: 55daee0d49bb03cfcb2a98a7d36c0c21c25286b74c5ade16a532ea373c772af37abdc07664e6edf8bdcdd20c01fe45da230b35014d71f01131d2bcdffd1b02a1
6
+ metadata.gz: 3379c592b226398c01c172ece55327704ef00efae5e8d0bd502073406ed241d9ef7273a4b5a22a0415c9292252d94baf247a492afff2c9921d8360b6915e03ce
7
+ data.tar.gz: dfb97960adf2014126aa7b66e5bf549d778e30d24a66706eaf357c5b5bfc936ea89eb9460af5fc0c7a47299fb47bb0ef1232c32d5135bbea766d2fdaf0f1fe0a
@@ -1,3 +1,3 @@
1
1
  module ConeyIsland
2
- VERSION = "0.11.2"
2
+ VERSION = "0.11.3"
3
3
  end
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coney_island
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.2
4
+ version: 0.11.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Draut