Skip to content

Simplify Isolation Group Determination #6768

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

Merged
merged 1 commit into from
Apr 1, 2025

Conversation

natemort
Copy link
Member

@natemort natemort commented Mar 31, 2025

The partition package was originally intended to abstract isolation group assignment and deterministically reassign tasks to new isolation groups, but with isolation group leaking being introduced we no longer explicitly move tasks to another isolation group. Additionally, the isolation duration has moved some of this logic from the partition package to the task_list_manager.

At this point the partition package has turned into a very complicated solution to the questions "is this isolation group drained" and "are there recent pollers from this isolation group". Delete it, and inline the behavior with the callsite, simplifying both.

Additionally remove the never-returned error from the function type to simplify callers.

This should be functionally identical, although I've also removed the leak cause for "unknown group". It's ambiguous with "no recent pollers" and I don't think really adds any value.

What changed?

  • Remove the partition package and inline the call

Why?

  • Simplify the isolation group code paths

How did you test it?

  • Unit tests

Potential risks

Release notes

Documentation Changes

The partition package was originally intended to abstract isolation group assignment and deterministically reassign tasks to new isolation groups, but with isolation group leaking being introduced we no longer explicitly move tasks to another isolation group. Additionally, the isolation duration has moved some of this logic from the partition package to the task_list_manager.

At this point the partition package has turned into a very complicated solution to the questions "is this isolation group drained" and "are there recent pollers from this isolation group". Delete it, and inline the behavior with the callsite, simplifying both.

Additionally remove the never-returned error from the function type to simplify callers.
@natemort natemort merged commit 5619f5e into cadence-workflow:master Apr 1, 2025
22 checks passed
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.

2 participants