Skip to content

Commit

Permalink
make instant cell update earlier to silent prompting creating paragraph
Browse files Browse the repository at this point in the history
  • Loading branch information
allen-li1231 committed Jan 29, 2025
1 parent 95e834b commit 9ed5666
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/extension/notebookKernel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -871,6 +871,8 @@ export class ZeppelinKernel {
return false;
}

await this.instantUpdatePollingParagraphs();

if (cell.metadata.status === 404) {
promptCreateParagraph(this, cell);
return;
Expand All @@ -883,7 +885,6 @@ export class ZeppelinKernel {
execution.clearOutput();
});

await this.instantUpdatePollingParagraphs();
execution.start(Date.now());

try {
Expand Down Expand Up @@ -922,6 +923,8 @@ export class ZeppelinKernel {
return;
}

await this.instantUpdatePollingParagraphs();

if (cell.metadata.status === 404) {
promptCreateParagraph(this, cell);
return;
Expand All @@ -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")) {
Expand Down

0 comments on commit 9ed5666

Please sign in to comment.