Open icankeep opened 2 years ago
I don't know how to reproduce this situation.
I think if the kernel is not found, it should not throw an exception, but just print the log, otherwise it will affect the startup process
I don't know how to reproduce this situation.
Might this be the result of a subsequent restart request, while the first was in the process of completing?
I think if the kernel is not found, it should not throw an exception, but just print the log, otherwise it will affect the startup process
This seems reasonable, although I'd be inclined to check self.has_kernel
in the shutdown method, prior to its sequence of interrupt, request-shutdown, etc. Perhaps in such cases (when shutdown_kernel encounters a false has_kernel
value), we simply log a warning and return, since there really isn't much else we can do (although I haven't looked closely relative to that last portion).
@Zsailer is also applying "pending-state" support to the shutdown operation so he may have some insights here as well.
I've seen this error with slow starting kernels. If you try to restart a kernel that takes a long time to start (this is often the case with remote kernels), you'll get this error.
I agree, we can likely log this issue without raising an exception. In a "pending kernels" world, proposed by #732, you won't run into this issue. Restarting a slow starting kernel will be blocked.
kernel is restarting