rabbit_jobs 0.8.10 → 0.8.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rabbit_jobs/publisher.rb +6 -1
- data/lib/rabbit_jobs/version.rb +1 -1
- 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: 326b46899a32fa93a317ec080cee6c20e002061a
|
4
|
+
data.tar.gz: 8d2d4075a4773e8b89ad4d5efa1705f7214eb91c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 23c540e2816b819b6d508757d22d2825778ffaef8f98ad4525b807423b583b07df33f3032480872b9abb4bb79db4163a2a19ef1ef0b5ce59b0fe4a6eb2f355d8
|
7
|
+
data.tar.gz: ab9dc9a9ff621d6e7e43a9ae578a13884acca21de5b58332790133ed3739f7084341d0c9e8594537af61a84c7827568d6da0b52ad70c18259b1b70a4366a0f2b
|
@@ -66,7 +66,12 @@ module RabbitJobs
|
|
66
66
|
end
|
67
67
|
|
68
68
|
def check_connection
|
69
|
-
|
69
|
+
unless connection.connected?
|
70
|
+
connection.start if connection.status == :disconnected?
|
71
|
+
# require 'pry'
|
72
|
+
# binding.pry
|
73
|
+
raise "Disconnected from #{RJ.config.server}. Connection status: #{connection.try(:status).inspect}"
|
74
|
+
end
|
70
75
|
end
|
71
76
|
end
|
72
77
|
end
|
data/lib/rabbit_jobs/version.rb
CHANGED