Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/dstack/_internal/core/backends/aws/compute.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,9 @@ def create_instance(
raise ComputeError(f"Invalid AWS request: {msg}")
continue
instance = response[0]
# wait_until_running() is only needed so that instance is immediately ready for volume attach.
# TODO: Drop wait_until_running() once attach readiness is checked outside.
instance.wait_until_running()
if instance_offer.instance.resources.spot:
# it will not terminate the instance
try:
Expand Down
Loading