Skip to content

Fix a JET error by narrowing the type signature of the create_worker(x, y) function#175

Merged
DilumAluthge merged 1 commit into
masterfrom
dpa/cherrypick-jet-create-worker-type-signature
Feb 21, 2026
Merged

Fix a JET error by narrowing the type signature of the create_worker(x, y) function#175
DilumAluthge merged 1 commit into
masterfrom
dpa/cherrypick-jet-create-worker-type-signature

Conversation

@DilumAluthge

Copy link
Copy Markdown
Member
  ┌ create_worker(manager::Any, wconfig::Any) @ Distributed /workpath/Distributed.jl/src/cluster.jl:620
  │ no matching method found `kwcall(::NamedTuple{(:config,), <:Tuple{Any}}, ::Type{Distributed.Worker}, ::Any, ::Sockets.TCPSocket, ::Sockets.TCPSocket, ::Base.LibuvStream)` (1/2 union split): Core.kwcall(NamedTuple{(:config,)}(tuple(wconfig::Any)::Tuple{Any})::NamedTuple{(:config,), <:Tuple{Any}}, Distributed.Worker, (getfield(w::Core.Box, :contents)::Any).id::Any, r_s::Sockets.TCPSocket, w_s::Sockets.TCPSocket, manager::Union{Base.LibuvStream, Distributed.ClusterManager})
  └────────────────────

(cherry picked from commit 79b4ca8)

…(x, y)` function

```
  ┌ create_worker(manager::Any, wconfig::Any) @ Distributed /workpath/Distributed.jl/src/cluster.jl:620
  │ no matching method found `kwcall(::NamedTuple{(:config,), <:Tuple{Any}}, ::Type{Distributed.Worker}, ::Any, ::Sockets.TCPSocket, ::Sockets.TCPSocket, ::Base.LibuvStream)` (1/2 union split): Core.kwcall(NamedTuple{(:config,)}(tuple(wconfig::Any)::Tuple{Any})::NamedTuple{(:config,), <:Tuple{Any}}, Distributed.Worker, (getfield(w::Core.Box, :contents)::Any).id::Any, r_s::Sockets.TCPSocket, w_s::Sockets.TCPSocket, manager::Union{Base.LibuvStream, Distributed.ClusterManager})
  └────────────────────
```

(cherry picked from commit 79b4ca8)
@DilumAluthge

Copy link
Copy Markdown
Member Author

@JamesWrigley Is the create_worker function part of the public API of the Distributed stdlib? I don't see it mentioned anywhere when I search the Julia manual (docs.julialang.org).

If it's not public API, I'm hoping it's okay to make this change? What do you think?

@codecov

codecov Bot commented Feb 12, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.34%. Comparing base (871e3d7) to head (b44b873).
⚠️ Report is 5 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #175   +/-   ##
=======================================
  Coverage   79.34%   79.34%           
=======================================
  Files          10       10           
  Lines        1951     1951           
=======================================
  Hits         1548     1548           
  Misses        403      403           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@JamesWrigley JamesWrigley left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nah this isn't public, people who use the ClusterManager interface should only be implementing launch() and the related functions.

LGTM!

@DilumAluthge DilumAluthge merged commit d65a996 into master Feb 21, 2026
8 checks passed
@DilumAluthge DilumAluthge deleted the dpa/cherrypick-jet-create-worker-type-signature branch February 21, 2026 04:35
DilumAluthge added a commit to JuliaParallel/DistributedNext.jl that referenced this pull request Feb 22, 2026
…(x, y)` function (#175)

This is a forward-port of JuliaLang/Distributed.jl#175 (JuliaLang/Distributed.jl@d65a996).

```
  ┌ create_worker(manager::Any, wconfig::Any) @ Distributed /workpath/Distributed.jl/src/cluster.jl:620
  │ no matching method found `kwcall(::NamedTuple{(:config,), <:Tuple{Any}}, ::Type{Distributed.Worker}, ::Any, ::Sockets.TCPSocket, ::Sockets.TCPSocket, ::Base.LibuvStream)` (1/2 union split): Core.kwcall(NamedTuple{(:config,)}(tuple(wconfig::Any)::Tuple{Any})::NamedTuple{(:config,), <:Tuple{Any}}, Distributed.Worker, (getfield(w::Core.Box, :contents)::Any).id::Any, r_s::Sockets.TCPSocket, w_s::Sockets.TCPSocket, manager::Union{Base.LibuvStream, Distributed.ClusterManager})
  └────────────────────
```

(cherry picked from commit d65a9960ae358806312c1adf35f45c62f02caf0b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants