mirror of
https://github.com/wassname/ray.git
synced 2026-07-14 11:17:54 +08:00
Start moving ray internal files to _private module (#10994)
This commit is contained in:
+4
-6
@@ -6,11 +6,9 @@ import time
|
||||
|
||||
import ray
|
||||
|
||||
from ray import gcs_utils
|
||||
from google.protobuf.json_format import MessageToDict
|
||||
from ray import (
|
||||
gcs_utils,
|
||||
services,
|
||||
)
|
||||
from ray._private import services
|
||||
from ray.utils import (decode, binary_to_hex, hex_to_binary)
|
||||
|
||||
from ray._raylet import GlobalStateAccessor
|
||||
@@ -893,8 +891,8 @@ def current_node_id():
|
||||
Returns:
|
||||
Id of the current node.
|
||||
"""
|
||||
return ray.resource_spec.NODE_ID_PREFIX + ray.services.get_node_ip_address(
|
||||
)
|
||||
return (ray.resource_spec.NODE_ID_PREFIX +
|
||||
ray._private.services.get_node_ip_address())
|
||||
|
||||
|
||||
def node_ids():
|
||||
|
||||
Reference in New Issue
Block a user