Sha256: 7c0fefcf9240d6bb4abd3b1ec841a6ad9ebc5f28c58aae2d92b726351b809405
Contents?: true
Size: 448 Bytes
Versions: 1
Compression:
Stored size: 448 Bytes
Contents
module Resque module StuckQueue class HeartbeatJob class << self attr_accessor :redis def perform(*args) keyname,host,port,namespace = *args @redis = Redis::Namespace.new(namespace, :redis => Redis.new(:host => host, :port => port)) @redis.set(keyname, Time.now.to_i) Resque::StuckQueue.logger.info "successfully updated key #{keyname}" end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
resque_stuck_queue-0.3.6 | lib/resque_stuck_queue/heartbeat_job.rb |