Skip to content

Dagger.workers() do not include DistributedNext workers ? #600

@ederag

Description

@ederag

Trying to delegate work to a remote workstation through ssh tunneling,
Run a task on a specific Distributed worker seemed appropriate, but the first line on the example fails:

julia> using DistributedNext

julia> addprocs([("proxybasalt", :auto)], tunnel=true);

julia> using Dagger

julia> sc_workers = Dagger.scope(worker = 3)
ERROR: no process with id 3 exists
Stacktrace:
  [1] error(s::String)
    @ Base ./error.jl:35
  [2] worker_from_id(pg::Distributed.ProcessGroup, i::Int64)
    @ Distributed /usr/local/build/julia/custom/1.10.9/share/julia/stdlib/v1.10/Distributed/src/cluster.jl:1098
  [3] worker_from_id
    @ /usr/local/build/julia/custom/1.10.9/share/julia/stdlib/v1.10/Distributed/src/cluster.jl:1090 [inlined]
  [4] remotecall_fetch
    @ /usr/local/build/julia/custom/1.10.9/share/julia/stdlib/v1.10/Distributed/src/remotecall.jl:492 [inlined]
  [5] #228
    @ /usr/local/build/julia/depot/packages/Dagger/0XSAN/src/utils/system_uuid.jl:38 [inlined]
  [6] get!(default::Dagger.var"#228#229"{Int64}, h::Dict{Int64, Base.UUID}, key::Int64)
    @ Base ./dict.jl:479
  [7] system_uuid
    @ /usr/local/build/julia/depot/packages/Dagger/0XSAN/src/utils/system_uuid.jl:37 [inlined]
  [8] ProcessScope
    @ /usr/local/build/julia/depot/packages/Dagger/0XSAN/src/scopes.jl:76 [inlined]
  [9] to_scope(sc::@NamedTuple{worker::Int64})
    @ Dagger /usr/local/build/julia/depot/packages/Dagger/0XSAN/src/scopes.jl:344
 [10] #scope#116
    @ /usr/local/build/julia/depot/packages/Dagger/0XSAN/src/scopes.jl:283 [inlined]
 [11] top-level scope
    @ REPL[4]:1

julia> 3 in workers()
true

julia> Dagger.workers()
1-element Vector{Int64}:
 1

I'd expect Dagger to make use of the DistributedNext workers.

Versions:

julia-1.10.9
  [fab6aee4] DistributedNext v1.0.0
  [d58978e5] Dagger v0.18.15

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions