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

Block fusion for barrier tasks #8944

Merged
merged 2 commits into from
Nov 20, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Migrate to property
  • Loading branch information
phofl committed Nov 20, 2024
commit 0f2f156fa899e6d56de32cbced1b182eeeddb86f
6 changes: 4 additions & 2 deletions distributed/shuffle/_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,6 @@

class P2PBarrierTask(Task):
spec: ShuffleSpec
block_fusion: bool

__slots__ = tuple(__annotations__)

Expand All @@ -599,7 +598,10 @@
):
self.spec = spec
super().__init__(key, func, *args, **kwargs)
self.block_fusion = True

def __repr__(self) -> str:
return f"P2PBarrierTask({self.key!r})"

@property
def block_fusion(self) -> bool:
return True

Check warning on line 607 in distributed/shuffle/_core.py

View check run for this annotation

Codecov / codecov/patch

distributed/shuffle/_core.py#L607

Added line #L607 was not covered by tests
Loading