ray.runtime_context.RuntimeContext.get_node_labels#

RuntimeContext.get_node_labels() Dict[str, List[str]][source]#

Get the node labels of the current worker.

Returns:

A dictionary of label key-value pairs.