Skip to content
Open
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
4 changes: 4 additions & 0 deletions nbclient/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -811,6 +811,10 @@ async def _async_poll_output_msg(
assert self.kc is not None
while True:
msg = await ensure_async(self.kc.iopub_channel.get_msg(timeout=None))
if msg["msg_type"] == "status" and msg["content"].get("execution_state") == "dead":
assert self.task_poll_for_reply is not None
self.task_poll_for_reply.cancel()
return
if msg["parent_header"].get("msg_id") == parent_msg_id:
try:
# Will raise CellExecutionComplete when completed
Expand Down