Skip to content

Commit 1fb486e

Browse files
authored
Show task nodes in run plan (#3301)
1 parent f46849e commit 1fb486e

File tree

1 file changed

+4
-1
lines changed
  • src/dstack/_internal/cli/utils

1 file changed

+4
-1
lines changed

src/dstack/_internal/cli/utils/run.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,10 @@ def th(s: str) -> str:
129129
props.add_row(th("User"), run_plan.user)
130130
if include_run_properties:
131131
props.add_row(th("Configuration"), run_spec.configuration_path)
132-
props.add_row(th("Type"), run_spec.configuration.type)
132+
configuration_type = run_spec.configuration.type
133+
if run_spec.configuration.type == "task":
134+
configuration_type += f" (nodes={run_spec.configuration.nodes})"
135+
props.add_row(th("Type"), configuration_type)
133136
props.add_row(th("Resources"), pretty_req)
134137
props.add_row(th("Spot policy"), spot_policy)
135138
props.add_row(th("Max price"), max_price)

0 commit comments

Comments
 (0)