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

running nbclient against enterprise gateway #319

Open
jgeraerts opened this issue Nov 19, 2024 · 0 comments
Open

running nbclient against enterprise gateway #319

jgeraerts opened this issue Nov 19, 2024 · 0 comments

Comments

@jgeraerts
Copy link

I'm using nbclient to run notebooks against an enterprise gateway on a k8s cluster. The issue i'm running into is when a kernel gets killed (e.g by OOMKiller) the enterprise gateway will restart the kernel immediately. The nbclient is using is_alive checks which succeed, because the kernel got restarted, but there is no code executing anymore.

On the iopub channel there is a restarting status being posted, however this is not being processed by nbclient and it keeps on waiting for a result which will never happen because the kernel got restarted.

The code on https://jupyter-enterprise-gateway.readthedocs.io/en/latest/developers/kernel-manager.html together with the Autokill.ipynb notebook from the testcases demonstrates the issue.

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

1 participant