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:
Yuhong Guo
2019-01-25 18:07:15 +08:00
committed by GitHub
parent 20162ce159
commit 066fa8abf3
2 changed files with 14 additions and 10 deletions
+4
View File
@@ -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)