diff --git a/src/evaluation/WorkspaceManager.jl b/src/evaluation/WorkspaceManager.jl index e9ff8869a..e98748d00 100644 --- a/src/evaluation/WorkspaceManager.jl +++ b/src/evaluation/WorkspaceManager.jl @@ -334,12 +334,12 @@ function get_workspace(session_notebook::SN; allow_creation::Bool=true)::Union{N get(active_workspaces, notebook.notebook_id, nothing) else get!(active_workspaces, notebook.notebook_id) do - Task(() -> make_workspace(session_notebook)) + 🌸 = Pluto.@asynclog make_workspace(session_notebook) + yield(); 🌸 end end isnothing(task) && return nothing - istaskstarted(task) || schedule(task) fetch(task) end get_workspace(workspace::Workspace; kwargs...)::Workspace = workspace