diff --git a/src/cluster.jl b/src/cluster.jl index 2c8f2f7..02bc8dd 100644 --- a/src/cluster.jl +++ b/src/cluster.jl @@ -569,7 +569,7 @@ function setup_launched_worker(manager, wconfig, launched_q) # same type. This is done by setting an appropriate value to `WorkerConfig.cnt`. cnt = something(wconfig.count, 1) if cnt === :auto - cnt = wconfig.environ[:cpu_threads] + cnt = (wconfig.environ::AbstractDict)[:cpu_threads] end cnt = cnt - 1 # Removing self from the requested number