Sha256: 7c89cd399bbeecb26757e82ab7216db8024af85ca096954016a8929136b7c254

Contents?: true

Size: 223 Bytes

Versions: 5

Compression:

Stored size: 223 Bytes

Contents

module Resque
  module StuckQueue
    class HeartbeatJob
      class << self

        attr_accessor :redis

        def perform(keyname)
          @redis.set(keyname, Time.now.to_i)
        end

      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
resque_stuck_queue-0.3.3 lib/resque_stuck_queue/heartbeat_job.rb
resque_stuck_queue-0.3.2 lib/resque_stuck_queue/heartbeat_job.rb
resque_stuck_queue-0.3.1 lib/resque_stuck_queue/heartbeat_job.rb
resque_stuck_queue-0.3.0 lib/resque_stuck_queue/heartbeat_job.rb
resque_stuck_queue-0.2.2 lib/resque_stuck_queue/heartbeat_job.rb