mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
[ZEPPELIN-4042]. IPythonClient is not shutdown properly
This commit is contained in:
parent
05fdfe5162
commit
72e1ceb58e
1 changed files with 5 additions and 0 deletions
|
|
@ -341,6 +341,11 @@ public class IPythonInterpreter extends Interpreter implements ExecuteResultHand
|
|||
if (watchDog != null) {
|
||||
LOGGER.info("Kill IPython Process");
|
||||
ipythonClient.stop(StopRequest.newBuilder().build());
|
||||
try {
|
||||
ipythonClient.shutdown();
|
||||
} catch (InterruptedException e) {
|
||||
LOGGER.warn("Fail to shutdown IPythonClient");
|
||||
}
|
||||
watchDog.destroyProcess();
|
||||
gatewayServer.shutdown();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue