Sha256: 84eda066feee1824d5dd5d5626afc0d0362cf9046449eaff76382001fc5da176

Contents?: true

Size: 368 Bytes

Versions: 1

Compression:

Stored size: 368 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)
        end

      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
resque_stuck_queue-0.3.5 lib/resque_stuck_queue/heartbeat_job.rb