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: b83b3426204ac003d16e3f28fda7d59644549b18
4
- data.tar.gz: 87f1c08aeb6ec5730842efff4e095224efb014db
3
+ metadata.gz: 0ac7630103397302ffd21d1008f67af92c69c0df
4
+ data.tar.gz: a9f38754d5a27adc23eeb0a9e8ff21754e026e2c
5
5
  SHA512:
6
- metadata.gz: cc00a4782247282a5745332bab5bf51d1f4d913e388465eb256184d7a4dfa8583effc5b7e30920d04c255c575cac6dc3ad060d8c27dd989650cd89a181923caf
7
- data.tar.gz: a5c682c5f0568c27ad1db54a61716a34b3e559f0340688a99179ca6bc0a1d67c3f8aefdc196adb72fa96041a91d06bc80954c0a716ed63cf842d20e93e9952ba
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.reconnect
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
@@ -1,3 +1,3 @@
1
1
  module Delayed
2
- VERSION = "0.9.1"
2
+ VERSION = "0.9.2"
3
3
  end
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../../
3
3
  specs:
4
- canvas-jobs (0.9.0)
4
+ canvas-jobs (0.9.1)
5
5
  after_transaction_commit (= 1.0.1)
6
6
  rails (>= 3.2)
7
7
  redis (> 3.0)
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../../
3
3
  specs:
4
- canvas-jobs (0.9.0)
4
+ canvas-jobs (0.9.1)
5
5
  after_transaction_commit (= 1.0.1)
6
6
  rails (>= 3.2)
7
7
  redis (> 3.0)
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../../
3
3
  specs:
4
- canvas-jobs (0.9.0)
4
+ canvas-jobs (0.9.1)
5
5
  after_transaction_commit (= 1.0.1)
6
6
  rails (>= 3.2)
7
7
  redis (> 3.0)
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../../
3
3
  specs:
4
- canvas-jobs (0.9.0)
4
+ canvas-jobs (0.9.1)
5
5
  after_transaction_commit (= 1.0.1)
6
6
  rails (>= 3.2)
7
7
  redis (> 3.0)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: canvas-jobs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Luetke