Skip to content

Commit f3b02bf

Browse files
committed
Fix a JET error around matching methods for getindex(...) (#170)
``` ┌ 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] └──────────────────── ``` (cherry picked from commit 61ff327e0aa53d25c29780327adab66ab4dcd244) (cherry picked from commit d06aa735f9511ac2618884e77e7caf29fdaeb1b1)
1 parent 6eaf80d commit f3b02bf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/cluster.jl

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

0 commit comments

Comments
 (0)