mirror of
https://github.com/wassname/ray.git
synced 2026-07-11 00:51:38 +08:00
Change Python's ObjectID to ObjectRef (#9353)
This commit is contained in:
@@ -81,7 +81,7 @@ def test_dying_driver_get(ray_start_regular):
|
||||
driver = """
|
||||
import ray
|
||||
ray.init("{}")
|
||||
ray.get(ray.ObjectID(ray.utils.hex_to_binary("{}")))
|
||||
ray.get(ray.ObjectRef(ray.utils.hex_to_binary("{}")))
|
||||
""".format(address_info["redis_address"], x_id.hex())
|
||||
|
||||
p = run_string_as_driver_nonblocking(driver)
|
||||
@@ -128,8 +128,8 @@ def test_dying_worker_wait(ray_start_2_cpus):
|
||||
worker_pid = ray.get(get_pid.remote())
|
||||
|
||||
@ray.remote
|
||||
def block_in_wait(object_id_in_list):
|
||||
ray.wait(object_id_in_list)
|
||||
def block_in_wait(object_ref_in_list):
|
||||
ray.wait(object_ref_in_list)
|
||||
|
||||
# Have the worker wait in a wait call.
|
||||
block_in_wait.remote([x_id])
|
||||
@@ -166,7 +166,7 @@ def test_dying_driver_wait(ray_start_regular):
|
||||
driver = """
|
||||
import ray
|
||||
ray.init("{}")
|
||||
ray.wait([ray.ObjectID(ray.utils.hex_to_binary("{}"))])
|
||||
ray.wait([ray.ObjectRef(ray.utils.hex_to_binary("{}"))])
|
||||
""".format(address_info["redis_address"], x_id.hex())
|
||||
|
||||
p = run_string_as_driver_nonblocking(driver)
|
||||
|
||||
Reference in New Issue
Block a user