Skip to content

Commit 8313058

Browse files
authored
Drop override message when overriding finished runs (#2623)
1 parent 44270da commit 8313058

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

  • src/dstack/_internal/cli/services/configurators

src/dstack/_internal/cli/services/configurators/run.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ def apply_configuration(
9898
print_run_plan(run_plan, max_offers=configurator_args.max_offers)
9999

100100
confirm_message = "Submit a new run?"
101+
if conf.name:
102+
confirm_message = f"Submit the run [code]{conf.name}[/]?"
101103
stop_run_name = None
102104
if run_plan.current_resource is not None:
103105
changed_fields = []
@@ -130,11 +132,6 @@ def apply_configuration(
130132
f"Active run [code]{conf.name}[/] already exists and cannot be updated in-place."
131133
)
132134
confirm_message = "Stop and override the run?"
133-
else:
134-
console.print(f"Finished run [code]{conf.name}[/] already exists.")
135-
confirm_message = "Override the run?"
136-
elif conf.name:
137-
confirm_message = f"Submit the run [code]{conf.name}[/]?"
138135

139136
if not command_args.yes and not confirm_ask(confirm_message):
140137
console.print("\nExiting...")

0 commit comments

Comments
 (0)