coney_island 0.7.4 → 0.7.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/coney_island/version.rb +1 -1
- data/lib/coney_island/worker.rb +4 -0
- 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: f039e0c6dcd7965fd53e9563264440a0f2cfbd51
|
4
|
+
data.tar.gz: 2769bb8e3e684f0b0d3b5b0cce0fb2033dd1c116
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b89c9a90de86274b2c006e95827de7e7c1909e02a5fae9620b2895d98bcdc69b0b8ce595dc3dd74acd5d1793e0f7a12cad28f92b41c7fb0c9b8c3bc26434ee94
|
7
|
+
data.tar.gz: 2cbb3dc9b4dba357951481935a13921c4b3e68d5c6b8d853f8a68140e023734996b0eccb832a45a52358f71097e95f80a8039483615e4be9b86c419f19633268
|
data/lib/coney_island/version.rb
CHANGED
data/lib/coney_island/worker.rb
CHANGED
@@ -89,6 +89,10 @@ module ConeyIsland
|
|
89
89
|
end
|
90
90
|
|
91
91
|
AMQP.connect(self.amqp_parameters) do |connection|
|
92
|
+
connection.on_tcp_connection_loss do |connection, settings|
|
93
|
+
# reconnect in 10 seconds, without enforcement
|
94
|
+
connection.reconnect(false, 10)
|
95
|
+
end
|
92
96
|
self.log.info("Connected to AMQP broker. Running #{AMQP::VERSION}")
|
93
97
|
@channel = AMQP::Channel.new(connection)
|
94
98
|
@exchange = @channel.topic('coney_island')
|