mirror of
https://github.com/wassname/ray.git
synced 2026-06-27 20:06:31 +08:00
Fix test-multi-node (#9453)
This commit is contained in:
+2
-2
@@ -183,7 +183,7 @@ class GlobalState:
|
||||
for i in range(len(object_table)):
|
||||
object_location_info = gcs_utils.ObjectLocationInfo.FromString(
|
||||
object_table[i])
|
||||
results[binary_to_hex(object_location_info.object_ref)] = \
|
||||
results[binary_to_hex(object_location_info.object_id)] = \
|
||||
self._gen_object_info(object_location_info)
|
||||
return results
|
||||
|
||||
@@ -198,7 +198,7 @@ class GlobalState:
|
||||
|
||||
object_info = {
|
||||
"ObjectRef": ray.utils.binary_to_hex(
|
||||
object_location_info.object_ref),
|
||||
object_location_info.object_id),
|
||||
"Locations": locations,
|
||||
}
|
||||
return object_info
|
||||
|
||||
@@ -113,6 +113,7 @@ def run_string_as_driver(driver_script):
|
||||
with proc:
|
||||
output = proc.communicate(driver_script.encode("ascii"))[0]
|
||||
if proc.returncode:
|
||||
print(ray.utils.decode(output))
|
||||
raise subprocess.CalledProcessError(proc.returncode, proc.args,
|
||||
output, proc.stderr)
|
||||
out = ray.utils.decode(output)
|
||||
|
||||
Reference in New Issue
Block a user