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

Prevent missing IOPub on restart #358

Conversation

SylvainCorlay
Copy link
Contributor

This is the jupyter_server flavor of jupyter/notebook#5904.

Related to jupyter/jupyter_client#593

@SylvainCorlay SylvainCorlay force-pushed the missing-iopub-on-restart branch 4 times, most recently from 449079e to 238d8fe Compare December 10, 2020 15:49
Copy link
Member

@kevin-bates kevin-bates left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After changing on_reply to on_shell_reply, I see the same behavior between server and notebook - restarts are not completing. I also notice that multiple SIGINT (ctrl-c) requests are not terminating the server and must issue a SIGQUIT (ctrl-) for the process to be terminated while in this state.

jupyter_server/services/kernels/kernelmanager.py Outdated Show resolved Hide resolved
@kevin-bates
Copy link
Member

I'm sorry. It just dawned on me that this PR requires jupyter/jupyter_client#593, so please disregard the restart failure behavior. I'll need to pull that PR as well.

@SylvainCorlay
Copy link
Contributor Author

Thanks, I will continue the work on jupyter/notebook#5904. and only update this one when it gets in there.

Basically, next change is to make the nudge loop an async thing.

@SylvainCorlay
Copy link
Contributor Author

I'm sorry. It just dawned on me that this PR requires jupyter/jupyter_client#593, so please disregard the restart failure behavior. I'll need to pull that PR as well.

Actually it does not require jupyter/jupyter_client#593.

Essentially, every client will need to nudge the kernel with kernel info requests until it gets something on iopub to guarantee that everything is connected.

Discussion at jupyter/jupyter_client#593

@SylvainCorlay
Copy link
Contributor Author

Closing. Another approach coming up.

@jasongrout
Copy link
Contributor

I think the other approach mentioned above is #361...

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

Successfully merging this pull request may close these issues.

3 participants