resque_stuck_queue 0.3.8 → 0.3.9

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
  SHA512:
3
- metadata.gz: 73fe098253c3537faa8c3f52ba8725f5bb3b61de0e3ab592cf2f6de6eedbcf2e5bc92f3c356fac8e32fe6f383104621432ac62983af8c29c72b2ba1f2d4faebb
4
- data.tar.gz: 3a2e165f4e3edc91cc6086c3180250ea5970e42695e3aede09049918ba771206e905ceac6956b94a72bf925709703b5f5bc2964edd9a3bb4c266c64e65e60e14
3
+ data.tar.gz: b49e05a7aa945e1d8e39001f5e27f59c6b05b4ecad5818418291c80db897b9ed34f6f5d56fd9514ef1c98d637300eb5db264a0ef5163cff952b81adcb7f8dae6
4
+ metadata.gz: 0c690deec48cc352654f9ffd3e69de75d5770eaff6d18bc96094594fa3f9100114fbee733ce37594ffab2999888260dc876da2fb699508138676be4d7c1f1269
5
5
  SHA1:
6
- metadata.gz: 9248a893ba7d98a4e4b057f19cc2592babc83993
7
- data.tar.gz: 9b3208761e51d8065c9e07e9f300085693ea3b67
6
+ data.tar.gz: 7575899cca38bf1fcfbcd5aca7cf466434625764
7
+ metadata.gz: 75f40917d0166d260012a436d5695fc45ea70e69
data/Gemfile CHANGED
@@ -15,6 +15,5 @@ gem 'redis-mutex'
15
15
  gem 'minitest'
16
16
  gem 'mocha'
17
17
  gem 'pry'
18
- gem 'rake'
19
18
  gem 'm'
20
19
  gem 'resque-scheduler'
@@ -7,8 +7,8 @@ module Resque
7
7
 
8
8
  def perform(*args)
9
9
  keyname,host,port,namespace,new_time = *args
10
- @redis = Redis::Namespace.new(namespace, :redis => Redis.new(:host => host, :port => port))
11
- #raise "#{@redis.inspect} must be the same as #{Resque::StuckQueue.redis.inspect}"
10
+ # if set by config[:redis] earlier before loading this lib.
11
+ @redis = Resque::StuckQueue.redis || Redis::Namespace.new(namespace, :redis => Redis.new(:host => host, :port => port))
12
12
  @redis.set(keyname, new_time)
13
13
  Resque::StuckQueue.logger.info "successfully updated key #{keyname} to #{new_time} at #{Time.now} for #{@redis.inspect}"
14
14
  end
@@ -1,5 +1,5 @@
1
1
  module Resque
2
2
  module StuckQueue
3
- VERSION = "0.3.8"
3
+ VERSION = "0.3.9"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resque_stuck_queue
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.8
4
+ version: 0.3.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shai Rosenfeld