A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.
Python artificial-intelligencedagdata-sciencedata-visualizationdataflowdeveloper-toolsmachine-learningnotebookspipelinepythonreactivesqlweb-app
fix: register cell as queued on run (#1810)
Akshay Agrawal7f7e2d0fada9
diff --git a/frontend/src/core/cells/__tests__/__snapshots__/cells.test.ts.snap b/frontend/src/core/cells/__tests__/__snapshots__/cells.test.ts.snapindex ed1a62668c..d09ac3ee39 100644--- a/frontend/src/core/cells/__tests__/__snapshots__/cells.test.ts.snap+++ b/frontend/src/core/cells/__tests__/__snapshots__/cells.test.ts.snap@@ -49,7 +49,7 @@ exports[`cell reducer > can initialize stdin 2`] = `"runStartTimestamp": null,"serializedEditorState": null,"staleInputs": false,- "status": "idle",+ "status": "queued","stopped": false,}`;@@ -360,7 +360,7 @@ exports[`cell reducer > can receive console when the cell is idle and will clear"runStartTimestamp": null,"serializedEditorState": null,"staleInputs": false,- "status": "idle",+ "status": "queued","stopped": false,}`;@@ -747,7 +747,7 @@ exports[`cell reducer > can run cell and receive cell messages 3`] = `"runStartTimestamp": null,"serializedEditorState": null,"staleInputs": false,- "status": "idle",+ "status": "queued","stopped": false,}`;diff --git a/frontend/src/core/cells/__tests__/cells.test.ts b/frontend/src/core/cells/__tests__/cells.test.tsindex 56bfc101c4..3bce285e00 100644--- a/frontend/src/core/cells/__tests__/cells.test.ts+++ b/frontend/src/core/cells/__tests__/cells.test.ts@@ -266,7 +266,7 @@ describe("cell reducer", () => {cellId: firstCellId,});cell = cells[0];- expect(cell.status).toBe("idle");+ expect(cell.status).toBe("queued");expect(cell.lastCodeRun).toBe("import marimo as mo");expect(cell.edited).toBe(false);expect(cell).toMatchSnapshot(); // snapshot everything as a catch all@@ -767,7 +767,7 @@ describe("cell reducer", () => {cellId: firstCellId,});cell = cells[0];- expect(cell.status).toBe("idle");+ expect(cell.status).toBe("queued");expect(cell.consoleOutputs).toEqual([]);expect(cell).toMatchSnapshot(); // snapshot everything as a catch all@@ -922,7 +922,7 @@ describe("cell reducer", () => {cellId: firstCellId,});cell = cells[0];- expect(cell.status).toBe("idle");+ expect(cell.status).toBe("queued");expect(cell.consoleOutputs).toEqual([OLD_STDOUT]); // Old stays there until it starts runningexpect(cell).toMatchSnapshot(); // snapshot everything as a catch alldiff --git a/frontend/src/core/cells/cell.ts b/frontend/src/core/cells/cell.tsindex 9b507618ed..a497971d07 100644--- a/frontend/src/core/cells/cell.ts+++ b/frontend/src/core/cells/cell.ts@@ -142,6 +142,7 @@ export function prepareCellForExecution(): CellRuntimeState {const nextCell = { ...cell };+ nextCell.status = "queued";nextCell.interrupted = false;nextCell.errored = false;nextCell.runElapsedTimeMs = null;