Skip to content

Fix resource deallocation for resumed tasks#6914

Merged
fjetter merged 1 commit intodask:mainfrom
crusaderky:resource_twice
Aug 19, 2022
Merged

Fix resource deallocation for resumed tasks#6914
fjetter merged 1 commit intodask:mainfrom
crusaderky:resource_twice

Conversation

@crusaderky
Copy link
Copy Markdown
Collaborator

@crusaderky crusaderky commented Aug 18, 2022

Closes #6915

@crusaderky crusaderky requested a review from fjetter August 18, 2022 19:20
@crusaderky crusaderky marked this pull request as ready for review August 18, 2022 19:50
@github-actions
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.

       15 files  ±  0         15 suites  ±0   6h 35m 48s ⏱️ + 8m 13s
  3 017 tests +12    2 934 ✔️ +14    82 💤 ±0  1  - 2 
22 323 runs  +84  21 356 ✔️ +86  966 💤 ±0  1  - 2 

For more details on these failures, see this check.

Results for commit 336cac0. ± Comparison against base commit 58a5a3c.

Copy link
Copy Markdown
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.

LGTM, thanks @crusaderky!


@pytest.mark.parametrize("done_ev_cls", [ExecuteSuccessEvent, ExecuteFailureEvent])
def test_resumed_with_different_resources(ws_with_running_task, done_ev_cls):
"""A task with resources is cancelled and then resumed to the same state, but with
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for adding an explanation here!

@fjetter fjetter merged commit dc874a4 into dask:main Aug 19, 2022
@crusaderky crusaderky deleted the resource_twice branch August 19, 2022 14:46
gjoseph92 pushed a commit to gjoseph92/distributed that referenced this pull request Oct 31, 2022
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.

Resumed tasks may not deallocate (or over-deallocate) resources

3 participants