Skip to content

Commit 2c04534

Browse files
committed
Add to wait terminate states
1 parent 3a11227 commit 2c04534

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

flowmachine/flowmachine/core/query_state.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,10 @@ def wait_until_complete(self, sleep_duration=1):
377377
"""
378378
if self.is_executing or self.is_queued or self.is_resetting:
379379
while not (
380-
self.is_finished_executing or self.is_cancelled or self.is_known
380+
self.is_finished_executing
381+
or self.is_cancelled
382+
or self.is_known
383+
or self.is_errored
384+
or self.is_errored_in_reset
381385
):
382386
_sleep(sleep_duration)

0 commit comments

Comments
 (0)