Skip to content

Commit

Permalink
Fix Julia 1.11.2 WorkspaceManager race condition
Browse files Browse the repository at this point in the history
  • Loading branch information
fonsp committed Dec 20, 2024
1 parent c13090a commit 1c7f7ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/evaluation/WorkspaceManager.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1c7f7ac

Please sign in to comment.