-
Notifications
You must be signed in to change notification settings - Fork 310
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
Use pending kernels #593
Use pending kernels #593
Conversation
TODO: test how a failing start affects the websocket GET. Also see what JupyterLab does today. |
ProblemA 500 error on a Possible SolutionExpand the kernel model to include an error message. Currently the kernels that use The JupyterLab client code would have to be update to handle an error in the initial WebSocket connect by fetching an updated kernel model and setting its status to There is already similar logic in |
TODO:
|
72b500d
to
1b9ca23
Compare
Codecov Report
@@ Coverage Diff @@
## master #593 +/- ##
==========================================
+ Coverage 77.33% 77.71% +0.37%
==========================================
Files 110 110
Lines 10255 10402 +147
Branches 1260 1287 +27
==========================================
+ Hits 7931 8084 +153
+ Misses 1927 1919 -8
- Partials 397 399 +2
Continue to review full report at Codecov.
|
Current failures are unrelated ( |
Note: this can be tested in JupyterLab using |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the activity-monitor update Steve - this looks good.
Thanks for the review! I'll make a release with this on Monday |
Kicking the PR to pick up the new version of |
yup wip wip handle getattr use ensure_future add more backwards compat clean up tests more cleanup Fix ping handling for shut down kernels fix handling of kernel startup lint
e5deb55
to
c39c60b
Compare
Fixes #592.
Fixes jupyterlab/jupyterlab#11338
Requires jupyter/jupyter_client#712 in order to use the new feature.
We cannot make
use_pending_kernels
default toTrue
before a major version bump because clients like JupyterLab are expecting kernel process startup errors to be given as part of the response to a POST on/api/sessions
.This PR needs an alternate way of surfacing that error as discussed in #592.
There is also a behavior change of a restart being ignored (and erroring) if the process has not yet started.
use_pending_kernels
being available so we maintain compat with olderjupyter_client
versionsexecution_state
to"dead"
and set the"reason"
based on the startup error"reason"
field to the kernel response model"reason"
field at kernel startupuse_pending_kernels
is setuse_pending_kernels