Skip to content

Commit 77e91ab

Browse files
authored
fix(blueprint): blueprint state queued handled by is ready (#726)
1 parent 66a4a32 commit 77e91ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/runloop_api_client/resources/blueprints.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ def retrieve_blueprint() -> BlueprintView:
311311
)
312312

313313
def is_done_building(blueprint: BlueprintView) -> bool:
314-
return blueprint.status not in ["building", "provisioning"]
314+
return blueprint.status not in ["queued", "building", "provisioning"]
315315

316316
blueprint = poll_until(retrieve_blueprint, is_done_building, polling_config)
317317

@@ -981,7 +981,7 @@ async def retrieve_blueprint() -> BlueprintView:
981981
)
982982

983983
def is_done_building(blueprint: BlueprintView) -> bool:
984-
return blueprint.status not in ["building", "provisioning"]
984+
return blueprint.status not in ["queued", "building", "provisioning"]
985985

986986
blueprint = await async_poll_until(retrieve_blueprint, is_done_building, polling_config)
987987

0 commit comments

Comments
 (0)