Skip to content

Commit

Permalink
Kernel/notebook mapping is removed when a kernel dies.
Browse files Browse the repository at this point in the history
* Previously, when a kernel died due to an external cause, the
  notebook/kernel mapping was not removed, so the kernel would
  be resused even though it was dead.
* The heartbeat now properly removes the notebook/kernel mapping.
  • Loading branch information
ellisonbg committed Aug 15, 2011
1 parent b796f24 commit a1dcaf6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions IPython/frontend/html/notebook/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ def stop_hb(self):
self.hb_stream.on_recv(None)

def kernel_died(self):
self.application.kernel_manager.delete_mapping_for_kernel(self.kernel_id)
self.write_message(
{'header': {'msg_type': 'status'},
'parent_header': {},
Expand Down

0 comments on commit a1dcaf6

Please sign in to comment.