Skip to content

Commit 91ae327

Browse files
committed
fix(FIR-50579): Wait for draining engine before starting again
1 parent ab2e59e commit 91ae327

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/firebolt/model/V2/engine.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,11 @@ def _wait_for_start_stop(self) -> None:
109109
wait_timeout = 3600
110110
interval_seconds = 5
111111
timeout_time = time.time() + wait_timeout
112-
while self.current_status in (EngineStatus.STOPPING, EngineStatus.STARTING):
112+
while self.current_status in (
113+
EngineStatus.DRAINING,
114+
EngineStatus.STOPPING,
115+
EngineStatus.STARTING,
116+
):
113117
logger.info(
114118
f"Engine {self.name} is currently "
115119
f"{self.current_status.value.lower()}, waiting"

0 commit comments

Comments
 (0)