module Jobs
class RunHeartbeat < Jobs::Base
def self.heartbeat_key
'heartbeat_last_run'
end
def execute(args)
$redis.set(self.class.heartbeat_key, Time.new.to_i.to_s)
def self.last_heartbeat
$redis.get(heartbeat_key).to_i