Skip to content

Fix when scheduler returns a tuple instead of a list#951

Merged
jacobtomlinson merged 2 commits intodask:mainfrom
jacobtomlinson:worker-tuple-list
Mar 2, 2026
Merged

Fix when scheduler returns a tuple instead of a list#951
jacobtomlinson merged 2 commits intodask:mainfrom
jacobtomlinson:worker-tuple-list

Conversation

@jacobtomlinson
Copy link
Copy Markdown
Member

Closes #950

Looks like the distributed scheduler has started intermittently returning a tuple instead of a list when calling the workers_to_close() RPC method.

There is an assertion in dask-kubernetes that was added as part of some type narrowing in #881. This fails when the method returns a tuple. This PR works around this by converting tuples to lists.

@amanfredi
Copy link
Copy Markdown

Any chance of getting a release with this fix?

@jacobtomlinson jacobtomlinson merged commit 40fcef2 into dask:main Mar 2, 2026
9 checks passed
@jacobtomlinson jacobtomlinson deleted the worker-tuple-list branch March 2, 2026 17:16
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.

Workers dead suddenly due to scheduler RPC bad response to workers_to_close

2 participants