From 103da2d1fcea999403cfcf20ade2f7f372a02cab Mon Sep 17 00:00:00 2001 From: Fons van der Plas Date: Mon, 12 Aug 2024 15:43:10 +0200 Subject: [PATCH] delay throttle from status tree updates at run start --- src/evaluation/Run.jl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/evaluation/Run.jl b/src/evaluation/Run.jl index 81be9f736b..ae1d223578 100644 --- a/src/evaluation/Run.jl +++ b/src/evaluation/Run.jl @@ -57,6 +57,9 @@ function run_reactive_core!( old_workspace_name, _ = WorkspaceManager.bump_workspace_module((session, notebook)) + # A state sync will come soon from this function, so let's delay anything coming from the status_tree listener, see https://github.com/fonsp/Pluto.jl/issues/2978 + Throttled.force_throttle_without_run(notebook.status_tree.update_listener_ref[]) + run_status = Status.report_business_started!(notebook.status_tree, :run) Status.report_business_started!(run_status, :resolve_topology) cell_status = Status.report_business_planned!(run_status, :evaluate)