Skip to content

Commit 25ee836

Browse files
authored
Add warning about new workers not sharing prior global state (#14)
Originally proposed in #50843
1 parent 41c0106 commit 25ee836

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/managers.jl

+5
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,11 @@ Launch `np` workers on the local host using the in-built `LocalManager`.
450450
Local workers inherit the current package environment (i.e., active project,
451451
[`LOAD_PATH`](@ref), and [`DEPOT_PATH`](@ref)) from the main process.
452452
453+
!!! warning
454+
Note that workers do not run a `~/.julia/config/startup.jl` startup script, nor do they synchronize
455+
their global state (such as command-line switches, global variables, new method definitions, and loaded modules) with any
456+
of the other running processes.
457+
453458
**Keyword arguments**:
454459
- `restrict::Bool`: if `true` (default) binding is restricted to `127.0.0.1`.
455460
- `dir`, `exename`, `exeflags`, `env`, `topology`, `lazy`, `enable_threaded_blas`: same effect

0 commit comments

Comments
 (0)