We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b132894 commit 3fdcc33Copy full SHA for 3fdcc33
1 file changed
src/dstack/_internal/cli/services/configurators/run.py
@@ -166,12 +166,7 @@ def apply_configuration(
166
# We can attach to run multiple times if it goes from running to pending (retried).
167
while True:
168
with MultiItemStatus(f"Launching [code]{run.name}[/]...", console=console) as live:
169
- while run.status in (
170
- RunStatus.SUBMITTED,
171
- RunStatus.PENDING,
172
- RunStatus.PROVISIONING,
173
- RunStatus.TERMINATING,
174
- ):
+ while not _is_ready_to_attach(run):
175
table = get_runs_table([run])
176
live.update(table)
177
time.sleep(5)
0 commit comments