canvas-jobs 0.9.1 → 0.9.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0ac7630103397302ffd21d1008f67af92c69c0df
|
4
|
+
data.tar.gz: a9f38754d5a27adc23eeb0a9e8ff21754e026e2c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 76a50047da602aa4749c9b5afb5902ce5f29fc88c1e5345f9a1584c2243386eba9f1d64f8abc01c33b06a57ebe097d2350e667e74280ef9a6bb38a121fb6601f
|
7
|
+
data.tar.gz: 9d2cf508c0203f244ea5d1237e42c00414263a5e9273cd3a7f98b443bbc2c14e759729b77ed23a73de058867e1439c9f9239a1a2eb4b6f5b0ce6d51027c0de1f
|
@@ -191,7 +191,13 @@ class Job
|
|
191
191
|
end
|
192
192
|
|
193
193
|
def self.reconnect!
|
194
|
-
self.redis.
|
194
|
+
self.redis ||= Redis.current
|
195
|
+
|
196
|
+
# redis cluster responds to reconnect directly,
|
197
|
+
# but individual redis needs it to be called on client
|
198
|
+
redis.respond_to?(:reconnect) ?
|
199
|
+
redis.reconnect :
|
200
|
+
redis.client.reconnect
|
195
201
|
end
|
196
202
|
|
197
203
|
def self.functions
|
data/lib/delayed/version.rb
CHANGED