Class: RefreshLatestTimestamp

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

Class Method Summary collapse

Class Method Details

.perform(args) ⇒ Object



262
263
264
265
266
267
268
# File 'lib/resque_stuck_queue.rb', line 262

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