parameters: (self)
docstring: Retrieves information and options from the node API
          and saves it into the database.
  
          :returns: True if information could be updated, False otherwise
docstring_summary: Retrieves information and options from the node API
          and saves it into the database.
docstring_tokens: Retrieves information and options from the node API and saves it into the database .
function: def update_node_info(self):
          """
          Retrieves information and options from the node API
          and saves it into the database.
  
          :returns: True if information could be updated, False otherwise
          """
          api_client = self.api_client(timeout=5)
          try:
              info = api_client.info()
  
              self.api_version = info.version
              self.queue_count = info.task_queue_count
              self.max_images = info.max_images
              self.engine_version = info.engine_version
              self.engine = info.engine
  
              options = list(map(lambda o: o.__dict__, api_client.options()))
              self.available_options = options
              self.last_refreshed = timezone.now()
              self.save()
              return True
          except exceptions.OdmError:
              return False
function_tokens: def update_node_info ( self ) : api_client = self . api_client ( timeout = 5 ) try : info = api_client . info ( ) self . api_version = info . version self . queue_count = info . task_queue_count self . max_images = info . max_images self . engine_version = info . engine_version self . engine = info . engine options = list ( map ( lambda o : o . __dict__ , api_client . options ( ) ) ) self . available_options = options self . last_refreshed = timezone . now ( ) self . save ( ) return True except exceptions . OdmError : return False