Start moving ray internal files to _private module (#10994)

This commit is contained in:
Eric Liang
2020-09-24 22:46:35 -07:00
committed by GitHub
parent 3b6fe72029
commit 609c1b8acd
39 changed files with 1825 additions and 1831 deletions
+4 -6
View File
@@ -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():