Skip to content

Commit 674ef4e

Browse files
authored
fix hanging on engine start, if engine starting failed (#103)
1 parent 0672d2d commit 674ef4e

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/firebolt/model/engine.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -254,11 +254,10 @@ def wait(seconds: int, error_message: str) -> None:
254254
)
255255

256256
# wait for engine to start
257-
while (
258-
wait_for_startup
259-
and engine.current_status_summary
260-
!= EngineStatusSummary.ENGINE_STATUS_SUMMARY_RUNNING
261-
):
257+
while wait_for_startup and engine.current_status_summary not in {
258+
EngineStatusSummary.ENGINE_STATUS_SUMMARY_RUNNING,
259+
EngineStatusSummary.ENGINE_STATUS_SUMMARY_FAILED,
260+
}:
262261
wait(
263262
seconds=5,
264263
error_message=f"Could not start engine within {wait_timeout_seconds} seconds.", # noqa: E501

0 commit comments

Comments
 (0)