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
Register run start for rpc call (#236)
Akshay Agrawalac65922ed10e
diff --git a/frontend/src/core/functions/FunctionRegistry.ts b/frontend/src/core/functions/FunctionRegistry.tsindex 25ab6ddb52..4bf2bc2452 100644--- a/frontend/src/core/functions/FunctionRegistry.ts+++ b/frontend/src/core/functions/FunctionRegistry.ts@@ -1,5 +1,6 @@/* Copyright 2023 Marimo. All rights reserved. */+import { RuntimeState } from "@/core/RuntimeState";import { sendFunctionRequest } from "@/core/network/requests";import { FunctionCallResultMessage } from "../kernel/messages";import { DeferredRequestRegistry } from "../network/DeferredRequestRegistry";@@ -9,6 +10,8 @@ export const FUNCTIONS_REGISTRY = new DeferredRequestRegistry<Omit<SendFunctionRequest, "functionCallId">,FunctionCallResultMessage>("function-call-result", async (requestId, req) => {+ // RPC counts as a kernel invocation+ RuntimeState.INSTANCE.registerRunStart();await sendFunctionRequest({functionCallId: requestId,...req,