python/ray/state.py
def node_resource_table(self, node_id=None):
        """Fetch and parse the node resource table info for one.

        Args:
            node_id: An node ID to fetch information about.

        Returns:
            Information from the node resource table.
        """
        self._check_connected()

        node_id = ray.NodeID(hex_to_binary(node_id))
        node_resource_bytes = self.global_state_accessor.get_node_resource_info(node_id)
        if node_resource_bytes is None:
            return {}
        else:
            node_resource_info = gcs_utils.ResourceMap.FromString(node_resource_bytes)
            return {
                key: value.resource_capacity
                for key, value in node_resource_info.items.items()
            }
Fetch and parse the node resource table info for one.

        Args:
            node_id: An node ID to fetch information about.

        Returns:
            Information from the node resource table.
        
Fetch and parse the node resource table info for one.
Fetch and parse the node resource table info for one .
def node_resource_table(self, node_id=None):
        self._check_connected()
        node_id = ray.NodeID(hex_to_binary(node_id))
        node_resource_bytes = self.global_state_accessor.get_node_resource_info(node_id)
        if node_resource_bytes is None:
            return {}
        else:
            node_resource_info = gcs_utils.ResourceMap.FromString(node_resource_bytes)
            return {
                key: value.resource_capacity
                for key, value in node_resource_info.items.items()
            }
def node_resource_table ( self , node_id = None ) : self . _check_connected ( ) node_id = ray . NodeID ( hex_to_binary ( node_id ) ) node_resource_bytes = self . global_state_accessor . get_node_resource_info ( node_id ) if node_resource_bytes is None : return { } else : node_resource_info = gcs_utils . ResourceMap . FromString ( node_resource_bytes ) return { key : value . resource_capacity for key , value in node_resource_info . items . items ( ) }
Fetch and parse the node resource table info for one.
Fetch and parse the node resource table info for one .
"""Fetch and parse the node resource table info for one.

        Args:
            node_id: An node ID to fetch information about.

        Returns:
            Information from the node resource table.
        """
Information from the node resource table.
Information from the node resource table .
self
node_id
An node ID to fetch information about.
An node ID to fetch information about .