Skip to content

Fix race condition in Client.scheduler_info - #9375

Merged
TomAugspurger merged 2 commits into
dask:mainfrom
TomAugspurger:tom/scheduler-identity-race
Nov 20, 2026
Merged

TomAugspurger merged 2 commits into
dask:mainfrom
TomAugspurger:tom/scheduler-identity-race

Conversation

@TomAugspurger

Copy link
Copy Markdown
Member

The periodic callback was setting self._scheduler_identity to an identity with 0 workers, so simply returning self._scheduler_identity from Client.scheduler_info() risks giving the wrong result. I think we need a fresh call.

With this, the reproducer from #9374 doesn't error after 2 minutes / 133,000 calls (previously it errored after a couple dozen).

Closes #9374.

The periodic callback was setting `self._scheduler_identity` to an
identity with 0 workers, so simply returning `self._scheduler_identity`
from `Client.scheduler_info()` risks giving the wrong result. I think
we need a fresh call.
@github-actions

github-actions Bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Unit Test Results

See test report for an extended history of previous test failures. This is useful for diagnosing flaky tests.

    40 files  ±0      40 suites  ±0   13h 56m 1s ⏱️ + 7m 10s
 4 160 tests ±0   3 981 ✅  - 1    178 💤 ±0  1 ❌ +1 
80 960 runs  ±0  76 719 ✅  - 1  4 240 💤 ±0  1 ❌ +1 

For more details on these failures, see this check.

Results for commit 18294a8. ± Comparison against base commit fea1d78.

♻️ This comment has been updated with latest results.

@TomAugspurger
TomAugspurger merged commit 73db47b into dask:main Nov 20, 2026
88 of 94 checks passed
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.

Race condition in client.scheduler_info gives 0 workers

1 participant