Reamer commented on code in PR #4582: URL: https://github.com/apache/zeppelin/pull/4582#discussion_r1173972774
########## zeppelin-zengine/src/main/java/org/apache/zeppelin/scheduler/RemoteScheduler.java: ########## @@ -53,22 +55,26 @@ public void runJobInScheduler(Job job) { remoteInterpreter.getProperty(".execution.mode", "paragraph"); if (executionMode.equals("paragraph")) { // wait until it is submitted to the remote - while (!jobRunner.isJobSubmittedInRemote()) { + while (!jobRunner.isJobSubmittedInRemote() && !Thread.currentThread().isInterrupted()) { Review Comment: The RemoteScheduler waits until the note or paragraph is executed on the remote interpreter. If an interrupt should occur, it is now reacted to and aborted accordingly. The executor of the RemoteScheduler receives the request to terminate itself through the `stop` in the AbstractScheduler. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@zeppelin.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org