From de0fb2de34657b9478f16559bbc4bb3b8a4841ed Mon Sep 17 00:00:00 2001 From: Victor Skvortsov Date: Wed, 19 Nov 2025 10:47:40 +0500 Subject: [PATCH] Show task nodes in run plan --- src/dstack/_internal/cli/utils/run.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/dstack/_internal/cli/utils/run.py b/src/dstack/_internal/cli/utils/run.py index 68444997f..bd77185bd 100644 --- a/src/dstack/_internal/cli/utils/run.py +++ b/src/dstack/_internal/cli/utils/run.py @@ -129,7 +129,10 @@ def th(s: str) -> str: props.add_row(th("User"), run_plan.user) if include_run_properties: props.add_row(th("Configuration"), run_spec.configuration_path) - props.add_row(th("Type"), run_spec.configuration.type) + configuration_type = run_spec.configuration.type + if run_spec.configuration.type == "task": + configuration_type += f" (nodes={run_spec.configuration.nodes})" + props.add_row(th("Type"), configuration_type) props.add_row(th("Resources"), pretty_req) props.add_row(th("Spot policy"), spot_policy) props.add_row(th("Max price"), max_price)