You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One idea: BaseException catches all built-in exceptions, while Exception catches all built-in, non-system-exiting exceptions. I think KeyboardInterrupt is a system-exiting exception.
Maybe we catch BaseException instead of Exception somewhere, preventing it to be propagated up the stack?
Issue
Installing
jupyter_collaboration
results in not being able to kill JupyterLab from the terminal.Reproduce
jupyterlab
andjupyter_collaboration
Ctrl + C
in the terminalAttempts to fix the issue
After some investigation, it looks like this
sys.exit
call does not work as expected even though it properly raises aSystemExit
.One reason for
sys.exit
to not work can be a hanging thread or subprocess that has not been terminated.My investigations so far have been:
_confirm_exit
thread from jupyter_server to see if that thread did not prevent from finishingAnyIO
usage in ypy-websockets. I tried this because there seems to be an "AnyIO worker thread" thread hanging around upon termination.None of these attempts fixed the issue. Though I think the refactor of the tasks cleanup could be good to include anyway.
The text was updated successfully, but these errors were encountered: