[GCS] Move node resource info from client table to resource table (#5050)

This commit is contained in:
Kai Yang
2019-07-11 13:17:19 +08:00
committed by Hao Chen
parent 691c9733f9
commit 43b6513d19
18 changed files with 215 additions and 334 deletions
+1 -3
View File
@@ -8,7 +8,6 @@ import time
import redis
import ray
from ray.gcs_utils import ClientTableData
logger = logging.getLogger(__name__)
@@ -176,8 +175,7 @@ class Cluster(object):
while time.time() - start_time < timeout:
clients = ray.state._parse_client_table(redis_client)
live_clients = [
client for client in clients
if client["EntryType"] == ClientTableData.INSERTION
client for client in clients if client["IsInsertion"]
]
expected = len(self.list_all_nodes())