Skip to content

Commit

Permalink
[VirtualCluster] vcluster cli command support minimal install (#467)
Browse files Browse the repository at this point in the history
Signed-off-by: sule <[email protected]>
  • Loading branch information
xsuler authored Jan 16, 2025
1 parent 11697d4 commit fde6dcc
Show file tree
Hide file tree
Showing 3 changed files with 314 additions and 208 deletions.
200 changes: 0 additions & 200 deletions python/ray/dashboard/modules/virtual_cluster/cli.py

This file was deleted.

4 changes: 2 additions & 2 deletions python/ray/dashboard/state_aggregator.py
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ def transform(reply) -> ListApiResponse:
for id, entry in entries.items():
for node_id in cluster_nodes[id]:
node = all_nodes[node_id]
if not node["is_dead"]:
if not node["is_dead"] and node["template_id"] != "":
entry["replica_sets"][node["template_id"]] = (
entry["replica_sets"].get(node["template_id"], 0) + 1
)
Expand All @@ -533,7 +533,7 @@ def collect_all_sub_nodes(virtual_cluster_id):
for node_id, node in entry["visible_node_instances"].items():
if node_id not in divided_nodes:
undivided_nodes[node_id] = node
if not node["is_dead"]:
if not node["is_dead"] and node["template_id"] != "":
entry["undivided_replica_sets"][node["template_id"]] = (
entry["undivided_replica_sets"].get(
node["template_id"], 0
Expand Down
Loading

0 comments on commit fde6dcc

Please sign in to comment.