From 25ee83653e510e9c80c62f2bcb7fc6059db1a90d Mon Sep 17 00:00:00 2001 From: Maarten Pronk <8655030+evetion@users.noreply.github.com> Date: Sat, 10 Feb 2024 20:07:08 +0100 Subject: [PATCH] Add warning about new workers not sharing prior global state (#14) Originally proposed in https://github.com/JuliaLang/julia/pull/50843 --- src/managers.jl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/managers.jl b/src/managers.jl index 57f58598e85dcf..b2b655a3c012ff 100644 --- a/src/managers.jl +++ b/src/managers.jl @@ -450,6 +450,11 @@ Launch `np` workers on the local host using the in-built `LocalManager`. Local workers inherit the current package environment (i.e., active project, [`LOAD_PATH`](@ref), and [`DEPOT_PATH`](@ref)) from the main process. +!!! warning + Note that workers do not run a `~/.julia/config/startup.jl` startup script, nor do they synchronize + their global state (such as command-line switches, global variables, new method definitions, and loaded modules) with any + of the other running processes. + **Keyword arguments**: - `restrict::Bool`: if `true` (default) binding is restricted to `127.0.0.1`. - `dir`, `exename`, `exeflags`, `env`, `topology`, `lazy`, `enable_threaded_blas`: same effect