File tree Expand file tree Collapse file tree
src/dstack/_internal/cli/services/configurators Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ("\n Exiting..." )
You can’t perform that action at this time.
0 commit comments