Open rfrerebe opened 2 years ago
My understanding is that there is a delay between when a port is chosen : https://github.com/dotnet/interactive/blob/main/src/dotnet-interactive/Program.cs#L102-L136 and when a port is used : https://github.com/dotnet/interactive/blob/main/src/Microsoft.DotNet.Interactive.Jupyter/Shell.cs#L78
This delay allows a race condition to happen (ie : 2 kernels with the same port can be launched, but only 1 will survive).
I am unsure of what the best solution could be:
Happy to discuss these solutions or any other and provide a PR if needed
Quick workaround at https://github.com/dotnet/interactive/pull/2288
Describe the bug
When opening several notebooks in jupyterhub, and restarting them to execute all cells, very often this exception is raised
Port number (here 1032) is usually in the low range of the allowed range.
Please complete the following:
Using version : 1.0.317502
Screenshots