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
9 changes: 4 additions & 5 deletions src/firebolt/model/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,11 +254,10 @@ def wait(seconds: int, error_message: str) -> None:
)

# wait for engine to start
while (
wait_for_startup
and engine.current_status_summary
!= EngineStatusSummary.ENGINE_STATUS_SUMMARY_RUNNING
):
while wait_for_startup and engine.current_status_summary not in {
EngineStatusSummary.ENGINE_STATUS_SUMMARY_RUNNING,
EngineStatusSummary.ENGINE_STATUS_SUMMARY_FAILED,
}:
wait(
seconds=5,
error_message=f"Could not start engine within {wait_timeout_seconds} seconds.", # noqa: E501
Expand Down