Class: RefreshLatestTimestamp

Inherits:
Object
  • Object
show all
Defined in:
lib/resque_stuck_queue.rb

Class Method Summary collapse

Class Method Details

.perform(args) ⇒ Object



195
196
197
198
199
200
201
# File 'lib/resque_stuck_queue.rb', line 195

def self.perform(args)
  timestamp_key = args[0]
  host = args[1] || "localhost"
  port = args[2] || "6379"
  r = Redis.new(:host => host, :port => port)
  r.set(timestamp_key, Time.now.to_i)
end