Skip to content

Commit f45e146

Browse files
committed
fix: should default to larger of timeouts
1 parent 7a1db20 commit f45e146

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/SearchUtils.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ end
196196
@something(
197197
worker_timeout,
198198
tryparse(Float64, get(ENV, "JULIA_WORKER_TIMEOUT", "")),
199-
min(60, _numprocs^2)
199+
max(60, _numprocs^2)
200200
)
201201
)
202202
_run_id = @something(run_id, generate_run_id())

src/SymbolicRegression.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +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 `min(60, numprocs^2)`. When explicitly provided,
416+
that value is used. Otherwise defaults to `max(60, numprocs^2)`. When explicitly provided,
417417
this temporarily overrides `JULIA_WORKER_TIMEOUT` only during worker creation.
418418
- `worker_imports::Union{Vector{Symbol},Nothing}=nothing`: If you want to import
419419
additional modules on each worker, pass them here as a vector of symbols.

0 commit comments

Comments
 (0)