def Register(self):
    logging.info("Registering with data master at %s:%d.", self.master_addr,
                 self.master_port)
    started = time.time()
    while True:
      if self._DoRegister():
        break
      logging.warning("Failed to connect with master on %s:%d",
                      self.master_addr, self.master_port)
      if time.time() - started > self.MASTER_RECONNECTION_TIME:
        raise errors.DataServerError("Could not connect to data master at "
                                     "%s:%d" % (self.master_addr,
                                                self.master_port))
      time.sleep(2)

    self.registered = True
Finds an executable by searching through PATH
dataset/ETHPy150Open google/grr/grr/server/data_server/data_server.py/StandardDataServer.Register--crossover with--dataset/ETHPy150Open NVIDIA/DIGITS/digits/config/torch_option.py/TorchOption.find_executable