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

Fix bug with greedy scheduler hitting empty collections #84

Merged
merged 4 commits into from
Mar 14, 2024

Conversation

MasonProtter
Copy link
Member

Alternative implementation to #83. I think this way is slightly more robust since we're not passing around nothing and we're only ignoring method errors for which e.f == Base.mapreduce_empty.

@carstenbauer
Copy link
Member

carstenbauer commented Mar 13, 2024

Yeah, I think I like this more. BTW, you can copy the changelog entry from my PR if you want.

@MasonProtter
Copy link
Member Author

MasonProtter commented Mar 13, 2024

One lingering concern is that if base changes the representation for their empty reduction error, this patch could fail. I tried doing the filtering at the site of the reduction though (test if the channel is closed and if the channel is empty) and it didn't really work.

@MasonProtter
Copy link
Member Author

Okay, I've added a code comment basically marking out my concern about how this might break in the future, but I think for now its good enough.

@carstenbauer carstenbauer merged commit fb67f6d into master Mar 14, 2024
10 checks passed
@carstenbauer carstenbauer deleted the mp/greedybug branch March 14, 2024 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants