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
Fix P2P shuffle with LocalCluster(..., processes=False)
#8125
Changes from 6 commits
4b10aa7
39e1e27
cc1722a
11786ca
2319769
c17d262
03b9d1c
2a05649
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -119,6 +119,9 @@ | |
key: str, | ||
worker: str, | ||
) -> ToPickle[ShuffleRunSpec]: | ||
# FIXME: Sometimes, this doesn't actually get pickled | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. which times are sometimes? Can create an issue about this and link it? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. My suspicion is that it's related to |
||
if isinstance(spec, ToPickle): | ||
spec = spec.data | ||
try: | ||
return self.get(spec.id, worker) | ||
except KeyError: | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is the
spec:
type annotation incorrect? Should it beToPickle[ShuffleSpec] | ShuffleSpec
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't mind adjusting this, I honestly don't care too much about typing for a case that shouldn't exist in the first place.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've adjusted typing.