mirror of
https://github.com/wassname/ray.git
synced 2026-06-28 12:10:40 +08:00
Fix monitor_test.py by waiting for moniter.py to start working (#3840)
* Wait for moniter.py to start working * Checkout None result in state.py
This commit is contained in:
@@ -229,6 +229,8 @@ class GlobalState(object):
|
||||
message = self._execute_command(object_id, "RAY.TABLE_LOOKUP",
|
||||
ray.gcs_utils.TablePrefix.OBJECT, "",
|
||||
object_id.binary())
|
||||
if message is None:
|
||||
return {}
|
||||
gcs_entry = ray.gcs_utils.GcsTableEntry.GetRootAsGcsTableEntry(
|
||||
message, 0)
|
||||
|
||||
@@ -292,6 +294,8 @@ class GlobalState(object):
|
||||
message = self._execute_command(task_id, "RAY.TABLE_LOOKUP",
|
||||
ray.gcs_utils.TablePrefix.RAYLET_TASK,
|
||||
"", task_id.binary())
|
||||
if message is None:
|
||||
return {}
|
||||
gcs_entries = ray.gcs_utils.GcsTableEntry.GetRootAsGcsTableEntry(
|
||||
message, 0)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user