Skip to content

Commit 82137af

Browse files
committed
refactor: small cleanups to worker_timeout
1 parent 455d017 commit 82137af

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/Configure.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ function configure_workers(;
368368
procs::Union{Vector{Int},Nothing},
369369
numprocs::Int,
370370
addprocs_function::Function,
371-
worker_timeout::Union{Float64,Nothing},
371+
worker_timeout::Float64,
372372
options::AbstractOptions,
373373
@nospecialize(worker_imports::Union{Vector{Symbol},Nothing}),
374374
project_path,

src/SymbolicRegression.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -413,8 +413,7 @@ which is useful for debugging and profiling.
413413
out-of-memory errors. By default, this is set to `Sys.free_memory() / numprocs`.
414414
- `worker_timeout::Union{Real,Nothing}=nothing`: Timeout in seconds for worker processes
415415
to establish connection with the master process. If `JULIA_WORKER_TIMEOUT` is already set,
416-
that value is used. Otherwise defaults to `max(60, numprocs^2)`. When explicitly provided,
417-
this temporarily overrides `JULIA_WORKER_TIMEOUT` only during worker creation.
416+
that value is used. Otherwise defaults to `max(60, numprocs^2)`.
418417
- `worker_imports::Union{Vector{Symbol},Nothing}=nothing`: If you want to import
419418
additional modules on each worker, pass them here as a vector of symbols.
420419
By default some of the extensions will automatically be loaded when needed.

0 commit comments

Comments
 (0)