<#7706 bug: dask plugin hardcodes removed dask-sch...
# flyte-github
a
#7706 bug: dask plugin hardcodes removed dask-scheduler/dask-worker binaries, breaking dask[distributed] >= 2026.6.0 Issue created by pingsutw Why The k8s dask plugin hardcodes the legacy
dask-scheduler
and
dask-worker
console scripts as the cluster container args. The dask maintainers removed those scripts in
distributed
2026.6.0 (deprecated back in 2022.10.0 in favour of the unified
dask scheduler
/
dask worker
subcommands — see dask/distributed#6735 and the 2026.6.0 release notes). Any task image built with a current
dask[distributed]
crash-loops immediately:
Copy code
dask-scheduler: executable file not found in $PATH
The only mitigation today is capping
dask[distributed]<2026.6.0
, which is what flyteorg/flyte-sdk#1312 does in
plugins/dask/pyproject.toml
and in
examples/plugins/dask_example.py
. That's a stopgap: it blocks users from every future dask release, and the cap has to be carried forever until the backend plugin stops calling the removed binaries. The fix is a straight swap to the new subcommands. The unified
dask
CLI landed in the same release that deprecated the old scripts (2022.10.0), and the plugin already floors
dask[distributed]>=2022.10.2
, so
dask scheduler
/
dask worker
are available across the entire supported range — no shim or config knob needed. Concrete example: works after the change, broken today Task image with `dask[distributed]==2026.6.0`: | today | after the change | | | ------------- | --------------------------------------------------------------------- | ------------------------------------ | | scheduler pod | CrashLoopBackOff — dask-scheduler: executable file not found in $PATH | scheduler starts, dashboard on :8787 | | worker pods | CrashLoopBackOff — dask-worker: executable file not found in $PATH | workers connect to the scheduler | Task image at the plugin's floor (
dask[distributed]==2022.10.2
): must keep working in both columns — the
dask scheduler
/
dask worker
subcommands already exist there. What to change This spans two repos: the fix is in
flyteorg/flyte
(Go backend plugin), the cleanup is in
flyteorg/flyte-sdk
(plugin dependency cap + example). 1. Backend plugin —
flyteorg/flyte
•
flyteplugins/go/tasks/plugins/k8s/dask/dask.go
•
createSchedulerSpec
(~L275):
[]string{"dask-scheduler"}
→
[]string{"dask", "scheduler"}
. The appended
--dashboard-prefix
stays as-is. •
createWorkerSpec
(~L209):
[]string{"dask-worker", "--name", "$(DASK_WORKER_NAME)"}
→
[]string{"dask", "worker", "--name", "$(DASK_WORKER_NAME)"}
. The appended
--nthreads
/
--memory-limit
stay as-is. • Note the worker container is named
dask-worker
(L184) — that's a k8s container name, unrelated to the binary, and should stay as-is. • Flag names are identical between the two CLIs, so
--nthreads
,
--memory-limit
,
--dashboard-prefix
and
--name
need no translation — only the command itself changes. •
flyteplugins/go/tasks/plugins/k8s/dask/dask_test.go
— assertions at L369 / L403 / L412 pin the exact arg slices and need updating. 2. Cleanup —
flyteorg/flyte-sdk
(follow-up, once the backend change ships)
•
plugins/dask/pyproject.toml
— drop the
<2026.6.0
cap on
dask[distributed]
(added in #1312), regenerate
plugins/dask/uv.lock
. •
examples/plugins/dask_example.py
— the image currently pins
"dask[distributed]<2026.6.0"
with a long explanatory comment (L12–L30). Remove the dask pin and that comment block once the plugin no longer needs it. The
connectrpc<0.11
pin in the same block is a separate concern — leave it alone. Outcome • A dask task running an image with
dask[distributed] >= 2026.6.0
starts scheduler and workers successfully — no
executable file not found
crash-loop • A dask task running an image at the plugin's floor (
dask[distributed]==2022.10.2
) still works •
--nthreads
,
--memory-limit
and
--dashboard-prefix
are still passed through and honoured •
dask_test.go
assertions updated to the new arg slices • `flyte-sdk`: the
dask[distributed]<2026.6.0
cap is removed from
plugins/dask/pyproject.toml
and
examples/plugins/dask_example.py
, and the example runs green on a current dask Getting started • Reproduce: build a task image with
dask[distributed]==2026.6.0
(i.e. run
examples/plugins/dask_example.py
from
flyte-sdk
without the pin from #1312), then check the scheduler pod:
kubectl logs <run>-scheduler
→
dask-scheduler: executable file not found in $PATH
. • Relevant code:
createSchedulerSpec
and
createWorkerSpec
in
flyteplugins/go/tasks/plugins/k8s/dask/dask.go
. • Test:
go test ./flyteplugins/go/tasks/plugins/k8s/dask/...
• Setup: see CONTRIBUTING.md. flyteorg/flyte