Reamer commented on a change in pull request #3776:
URL: https://github.com/apache/zeppelin/pull/3776#discussion_r429605716



##########
File path: 
zeppelin-interpreter/src/main/java/org/apache/zeppelin/interpreter/remote/RemoteInterpreterServer.java
##########
@@ -904,9 +904,11 @@ public String getStatus(String sessionId, String jobId)
       }
 
       for (Interpreter intp : interpreters) {
-        Job job = intp.getScheduler().getJob(jobId);
-        if (job != null) {
-          return job.getStatus().name();
+        if (((LazyOpenInterpreter) intp).isOpen()) {

Review comment:
       At the moment I can't view the whole source code. A `instanceof` should 
avoid a `ClassCastException`.




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to