From 9ed56667449441229cf55b4baa9226ee87f43e90 Mon Sep 17 00:00:00 2001 From: allen-li1231 Date: Wed, 29 Jan 2025 12:09:11 +0800 Subject: [PATCH] make instant cell update earlier to silent prompting creating paragraph --- src/extension/notebookKernel.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/extension/notebookKernel.ts b/src/extension/notebookKernel.ts index c30c192..b483f13 100644 --- a/src/extension/notebookKernel.ts +++ b/src/extension/notebookKernel.ts @@ -871,6 +871,8 @@ export class ZeppelinKernel { return false; } + await this.instantUpdatePollingParagraphs(); + if (cell.metadata.status === 404) { promptCreateParagraph(this, cell); return; @@ -883,7 +885,6 @@ export class ZeppelinKernel { execution.clearOutput(); }); - await this.instantUpdatePollingParagraphs(); execution.start(Date.now()); try { @@ -922,6 +923,8 @@ export class ZeppelinKernel { return; } + await this.instantUpdatePollingParagraphs(); + if (cell.metadata.status === 404) { promptCreateParagraph(this, cell); return; @@ -932,7 +935,6 @@ export class ZeppelinKernel { await this.stopParagraph(execution.cell); }); try { - await this.instantUpdatePollingParagraphs(); let paragraph = await this.getParagraphInfo(cell); if ((paragraph.status !== "RUNNING") && (cell.metadata.status !== "PENDING")) {