mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
set status FINISHED on empty paragraph
this is required since otherwise notebook wouldn't be isTerminated()
This commit is contained in:
parent
2ef835915a
commit
54e5ce9d7b
1 changed files with 3 additions and 2 deletions
|
|
@ -555,13 +555,14 @@ public class Note implements Serializable, ParagraphJobListener {
|
|||
*/
|
||||
public void run(String paragraphId) {
|
||||
Paragraph p = getParagraph(paragraphId);
|
||||
|
||||
p.setListener(jobListenerFactory.getParagraphJobListener(this));
|
||||
|
||||
if (p.isBlankParagraph()) {
|
||||
logger.info("skip to run blank paragraph. {}", p.getId());
|
||||
p.setStatus(Job.Status.FINISHED);
|
||||
return;
|
||||
}
|
||||
|
||||
p.setListener(jobListenerFactory.getParagraphJobListener(this));
|
||||
String requiredReplName = p.getRequiredReplName();
|
||||
Interpreter intp = factory.getInterpreter(p.getUser(), getId(), requiredReplName);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue