Skip to content

Commit

Permalink
Add warning about new workers not sharing prior global state (#14)
Browse files Browse the repository at this point in the history
Originally proposed in JuliaLang/julia#50843
  • Loading branch information
evetion authored Feb 10, 2024
1 parent 41c0106 commit 25ee836
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/managers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 25ee836

Please sign in to comment.