<#7707 fix(dask): use unified dask scheduler/worke...
# flyte-github
a
#7707 fix(dask): use unified dask scheduler/worker CLI Pull request opened by Shaurya2k06 Tracking issue Closes #7706 Why are the changes needed? The k8s dask plugin hardcodes the legacy
dask-scheduler
and
dask-worker
console scripts as cluster container args. Those scripts were removed in
distributed
2026.6.0 (deprecated since 2022.10.0 in favour of
dask scheduler
/
dask worker
). Any task image with a current
dask[distributed]
crash-loops with
executable file not found in $PATH
. The SDK-side
<2026.6.0
cap is only a stopgap until the backend stops calling the removed binaries. What changes were proposed in this pull request? In `flyteplugins/go/tasks/plugins/k8s/dask/dask.go`: • `createSchedulerSpec`:
[]string{"dask-scheduler"}
→
[]string{"dask", "scheduler"}
(still appends
--dashboard-prefix
when set) • `createWorkerSpec`:
[]string{"dask-worker", ...}
→
[]string{"dask", "worker", ...}
(keeps
--name
/
--nthreads
/
--memory-limit
) • Left the k8s container name
dask-worker
unchanged Updated exact arg-slice assertions in
dask_test.go
. Flag names are identical between CLIs; the unified subcommands exist across the supported floor (
>=2022.10.2
). Follow-up (separate repo): drop the
dask[distributed]<2026.6.0
cap in
flyteorg/flyte-sdk
once this ships. How was this patch tested? go test ./flyteplugins/go/tasks/plugins/k8s/dask/... All package tests passed (
ok … 1.251s
). Labels • fixed Check all the applicable boxes • I updated the documentation accordingly. • All new and existing tests passed. • All commits are signed-off. Related PRs Follow-up: remove
dask[distributed]<2026.6.0
from
flyteorg/flyte-sdk
(
plugins/dask/pyproject.toml
+
examples/plugins/dask_example.py
) after this backend change is released. flyteorg/flyte