jupyter / jupyter_client

Jupyter protocol client APIs
https://jupyter-client.readthedocs.io
BSD 3-Clause "New" or "Revised" License
383 stars 283 forks source link

Workaround for launch bug #861

Closed blink1073 closed 1 year ago

blink1073 commented 1 year ago

cc @kevin-bates

This prevents a race condition where the kernel launch process is attempting to read the connection file, and we overwrite the file while it is being read. The symptom is that the kernel fails to start because it cannot decode the JSON in the connection file.

We should backport this fix to 7.x, but I think for 8.x we should change it so that the provisioner is entirely responsible for the handling of the connection file, even if the information lives on the kernel manager. Nothing would change for the local provisioner.

blink1073 commented 1 year ago

@meeseeksdev please backport to 7.x