We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0672d2d commit 674ef4eCopy full SHA for 674ef4e
src/firebolt/model/engine.py
@@ -254,11 +254,10 @@ def wait(seconds: int, error_message: str) -> None:
254
)
255
256
# wait for engine to start
257
- while (
258
- wait_for_startup
259
- and engine.current_status_summary
260
- != EngineStatusSummary.ENGINE_STATUS_SUMMARY_RUNNING
261
- ):
+ while wait_for_startup and engine.current_status_summary not in {
+ EngineStatusSummary.ENGINE_STATUS_SUMMARY_RUNNING,
+ EngineStatusSummary.ENGINE_STATUS_SUMMARY_FAILED,
+ }:
262
wait(
263
seconds=5,
264
error_message=f"Could not start engine within {wait_timeout_seconds} seconds.", # noqa: E501
0 commit comments