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 +4 -4
- data/Gemfile +0 -1
- data/lib/resque_stuck_queue/heartbeat_job.rb +2 -2
- data/lib/resque_stuck_queue/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA512:
|
3
|
-
|
4
|
-
|
3
|
+
data.tar.gz: b49e05a7aa945e1d8e39001f5e27f59c6b05b4ecad5818418291c80db897b9ed34f6f5d56fd9514ef1c98d637300eb5db264a0ef5163cff952b81adcb7f8dae6
|
4
|
+
metadata.gz: 0c690deec48cc352654f9ffd3e69de75d5770eaff6d18bc96094594fa3f9100114fbee733ce37594ffab2999888260dc876da2fb699508138676be4d7c1f1269
|
5
5
|
SHA1:
|
6
|
-
|
7
|
-
|
6
|
+
data.tar.gz: 7575899cca38bf1fcfbcd5aca7cf466434625764
|
7
|
+
metadata.gz: 75f40917d0166d260012a436d5695fc45ea70e69
|
data/Gemfile
CHANGED
@@ -7,8 +7,8 @@ module Resque
|
|
7
7
|
|
8
8
|
def perform(*args)
|
9
9
|
keyname,host,port,namespace,new_time = *args
|
10
|
-
|
11
|
-
|
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
|