Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kernel does not shut down after loosing internet connection #11

Closed
yakutovicha opened this issue Apr 25, 2018 · 1 comment
Closed

Kernel does not shut down after loosing internet connection #11

yakutovicha opened this issue Apr 25, 2018 · 1 comment

Comments

@yakutovicha
Copy link

Recently I've noticed a behaviour that in my opinion should be corrected: if my laptop looses the internet connection and then I close the corresponding tab in the web browser - the kernel keeps running in the background.

To reproduce that behaviour one needs to do the following steps:

  1. run a notebook in the app-mode.
  2. disconnect the computer from the internet
  3. close the tab
  4. restore the internet connection
    ... After that the kernel keeps running "forever"

Similar thing happens if one often puts his computer into a "sleep" mode: once the python kernel gets detached from jupyter app - the only way to kill it is to go to the "taks" and shut it down manually.

I think there should be an automatic check that kills the kernel if it was not doing anything a certain amount of time. This will significantly reduce the use of computational resources.

@oschuett
Copy link
Owner

While I agree that zombie kernels are an issue, I don't think this should be address by Appmode.

In fact, the Jupyter developers have been discussing this for some time: ipython/ipython#5539 and apparently they recently came up with a solution: jupyter/notebook#2215 .

Note, that JupyterHub has it's own mechanism for clearing out idle sessions: https://github.com/jupyterhub/jupyterhub/tree/master/examples/cull-idle

And there is also an ongoing discussion about reconnecting to a notebook: jupyter/notebook#1150 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants