Skip to content

Commit

Permalink
[qob] Allow a hail session to be reused after ctrl-c (#12919)
Browse files Browse the repository at this point in the history
CHANGELOG: An interactive hail session is no longer unusable after
hitting CTRL-C during a batch execution in Query-on-Batch.
  • Loading branch information
daniel-goldstein committed Apr 21, 2023
1 parent 53d8052 commit 8697ab8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hail/python/hail/backend/service_backend.py
Expand Up @@ -481,6 +481,7 @@ def _cancel_on_ctrl_c(self, coro: Awaitable[T]) -> T:
if self._batch is not None:
print("Received a keyboard interrupt, cancelling the batch...")
async_to_blocking(self._batch.cancel())
self._batch = None
raise

def execute(self, ir: BaseIR, timed: bool = False):
Expand Down

0 comments on commit 8697ab8

Please sign in to comment.