Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor Scheduler.is_idle #7881

Merged
merged 1 commit into from Jun 6, 2023
Merged

Conversation

crusaderky
Copy link
Collaborator

@crusaderky crusaderky commented Jun 4, 2023

Follow-up to #7790

Move non-trivial logic of Scheduler.is_idle to the task groups. This is a propaedeutic step to reuse the same logic in spans (#7860).

Fix a regression introduced in 2023.5.1, where a cluster with erred tasks would not be considered idle, thus causing unrelated Computations to be merged into one, until the failed task is forgotten (cc @ntabris)

@crusaderky crusaderky requested a review from fjetter as a code owner June 4, 2023 13:09
@crusaderky crusaderky self-assigned this Jun 4, 2023
@crusaderky crusaderky mentioned this pull request Jun 4, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Jun 4, 2023

Unit Test Results

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

       20 files  ±  0         20 suites  ±0   11h 12m 24s ⏱️ - 36m 17s
  3 664 tests +  5    3 553 ✔️ +  3     108 💤 ±0  3 +2 
35 430 runs  +50  33 663 ✔️ +50  1 764 💤  - 2  3 +2 

For more details on these failures, see this check.

Results for commit 669429d. ± Comparison against base commit 57639c1.

Comment on lines +2666 to +2667
"""TaskGroup.done is True iff all of its tasks are in memory, erred, released, or
forgotten state
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
"""TaskGroup.done is True iff all of its tasks are in memory, erred, released, or
forgotten state
"""TaskGroup.done is True if all of its tasks are in memory, erred, released, or
forgotten state

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

iff = if and only if

Copy link
Member

@hendrikmakait hendrikmakait left a comment

Choose a reason for hiding this comment

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

Thanks, @crusaderky!

@hendrikmakait hendrikmakait merged commit 2d4ff46 into dask:main Jun 6, 2023
23 of 27 checks passed
@crusaderky crusaderky deleted the is_idle_refactor branch June 6, 2023 13:32
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.

None yet

3 participants