mirror of
https://github.com/wassname/ray.git
synced 2026-08-10 12:30:14 +08:00
[Autoscaler] Display node status tag in autsocaler status (#13561)
* . * . * . * . * . * lint Co-authored-by: Alex Wu <alex@anyscale.com>
This commit is contained in:
@@ -765,7 +765,7 @@ class StandardAutoscaler:
|
||||
]
|
||||
is_pending = status in pending_states
|
||||
if is_pending:
|
||||
pending_nodes.append((ip, node_type))
|
||||
pending_nodes.append((ip, node_type, status))
|
||||
else:
|
||||
# TODO (Alex): Failed nodes are now immediately killed, so
|
||||
# this list will almost always be empty. We should ideally
|
||||
|
||||
@@ -362,8 +362,8 @@ def format_info_string(lm_summary, autoscaler_summary, time=None):
|
||||
for node_type, count in autoscaler_summary.pending_launches.items():
|
||||
line = f" {node_type}, {count} launching"
|
||||
pending_lines.append(line)
|
||||
for ip, node_type in autoscaler_summary.pending_nodes:
|
||||
line = f" {ip}: {node_type}, setting up"
|
||||
for ip, node_type, status in autoscaler_summary.pending_nodes:
|
||||
line = f" {ip}: {node_type}, {status.lower()}"
|
||||
pending_lines.append(line)
|
||||
if pending_lines:
|
||||
pending_report = "\n".join(pending_lines)
|
||||
|
||||
Reference in New Issue
Block a user