ray.runtime_context.RuntimeContext.get_node_id#
- RuntimeContext.get_node_id() str[source]#
- Get current node ID for this worker or driver. - Node ID is the id of a node that your driver, task, or actor runs. The ID will be in hex format. - Returns:
- A node id in hex format for this worker or driver. 
- Raises:
- AssertionError – If not called in a driver or worker. Generally, this means that ray.init() was not called.