Skip to content

Commit df4b9ec

Browse files
committed
Fix a JET error around matching methods for getindex(...)
``` ┌ setup_launched_worker(manager::Distributed.SSHManager, wconfig::Distributed.WorkerConfig, launched_q::Vector{Int64}) @ Distributed /workpath/Distributed.jl/src/cluster.jl:563 │ no matching method found `getindex(::Nothing, ::Symbol)` (1/2 union split): cnt = ((wconfig::Distributed.WorkerConfig).environ::Union{Nothing, Dict})[:cpu_threads] └──────────────────── ```
1 parent 3f99107 commit df4b9ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cluster.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ function setup_launched_worker(manager, wconfig, launched_q)
567567
# same type. This is done by setting an appropriate value to `WorkerConfig.cnt`.
568568
cnt = something(wconfig.count, 1)
569569
if cnt === :auto
570-
cnt = wconfig.environ[:cpu_threads]
570+
cnt = (wconfig.environ::AbstractDict)[:cpu_threads]
571571
end
572572
cnt = cnt - 1 # Removing self from the requested number
573573

0 commit comments

Comments
 (0)