We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c445ec1 commit d01981cCopy full SHA for d01981c
src/dstack/_internal/core/backends/aws/compute.py
@@ -351,6 +351,9 @@ def create_instance(
351
raise ComputeError(f"Invalid AWS request: {msg}")
352
continue
353
instance = response[0]
354
+ # wait_until_running() is only needed so that instance is immediately ready for volume attach.
355
+ # TODO: Drop wait_until_running() once attach readiness is checked outside.
356
+ instance.wait_until_running()
357
if instance_offer.instance.resources.spot:
358
# it will not terminate the instance
359
try:
0 commit comments