lib/dynflow/dispatcher/client_dispatcher.rb
def fresh_record?(id)
          record = find_world(id)
          return false if record.nil?
          @executor[id] = record.data[:class] == 'Dynflow::Coordinator::ExecutorWorld'
          time = self.class.load_time(record.data[:meta][:last_seen])
          time >= Time.now - @max_age
        end
# Loads the coordinator record from the database and checks whether the world
# was last seen within the time limit
#
# @param id [String] Id of the world to be checked
# @return [TrueClass] if the world was last seen within the limit
# @return [FalseClass] if the world was last seen after the limit passed
Loads the coordinator record from the database and checks whether the world
was last seen within the time limit
Loads the coordinator record from the database and checks whether the world was last seen within the time limit
def fresh_record?(id)
          record = find_world(id)
          return false if record.nil?
          @executor[id] = record.data[:class] == 'Dynflow::Coordinator::ExecutorWorld'
          time = self.class.load_time(record.data[:meta][:last_seen])
          time >= Time.now - @max_age
        end
def fresh_record? ( id ) record = find_world ( id ) return false if record . nil? @executor [ id ] = record . data [ :class ] == 'Dynflow::Coordinator::ExecutorWorld' time = self . class . load_time ( record . data [ :meta ] [ :last_seen ] ) time >= Time . now - @max_age end
Loads the coordinator record from the database and checks whether the world
was last seen within the time limit
Loads the coordinator record from the database and checks whether the world was last seen within the time limit
if the world was last seen within the limit
if the world was last seen within the limit
TrueClass
if the world was last seen after the limit passed
if the world was last seen after the limit passed
FalseClass
id
Id of the world to be checked
Id of the world to be checked