-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Add more logging around jupyter server death #4663
Conversation
Handle security issue for WS
Codecov Report
@@ Coverage Diff @@
## master #4663 +/- ##
=======================================
- Coverage 77% 77% -<1%
=======================================
Files 446 446
Lines 21151 21226 +75
Branches 3456 3473 +17
=======================================
+ Hits 16264 16303 +39
- Misses 4883 4919 +36
Partials 4 4
|
@@ -247,7 +263,7 @@ export class JupyterServerBase implements INotebookServer { | |||
|
|||
// Complete all pending as an error. We're restarting | |||
const copyPending = [...this.pendingCellSubscriptions]; | |||
copyPending.forEach(c => c.reject()); | |||
copyPending.forEach(c => c.reject(new Error('Restarting kernel'))); |
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.
I might just be following the promise / deferred chain wrong. But is this shown in the UI?
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.
Ah, I forgot to remove these. These should have been empty still.
In reply to: 263191091 [](ancestors = 263191091)
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.
Sounds good. The rest of it looks good to me.
In reply to: 263191335 [](ancestors = 263191335,263191091)
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.
For #4573, #4497
Add more logging around server death and connection problems. Make kernel spec connection problems not cause server crash
Also adjust the version of 'ws' in use.
package-lock.json
has been regenerated by runningnpm install
(if dependencies have changed)