We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 856a442 commit 0ac47fcCopy full SHA for 0ac47fc
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