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