Skip to content

MINOR: Move candidateClients set creation outside of task loop for StickyTaskAssignor #19511

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

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from

Conversation

lorcanj
Copy link
Contributor

@lorcanj lorcanj commented Apr 18, 2025

In the StickyTaskAssignor, a set of ProcessIds is created for any remaining
unassigned tasks, representing the clients that a task can be assigned to.

The set is currently created for each remaining taskId, however the set
created is not dependent on the remaining taskIds (unlike the
previousClientsForStandbyTask, which does use the taskId in its creation).

I have checked that the set is not mutated in the findBestClientForTask()
code path and run the unit tests applicable for this assignor.

This change ensures the set is only created once.

@github-actions github-actions bot added triage PRs from the community streams small Small PRs labels Apr 18, 2025
@lorcanj lorcanj changed the title MINOR: move candidateClients set creation outside of task loop MINOR: move candidateClients set creation outside of task loop for StickyTaskAssignor Apr 18, 2025
@lorcanj lorcanj changed the title MINOR: move candidateClients set creation outside of task loop for StickyTaskAssignor MINOR: Move candidateClients set creation outside of task loop for StickyTaskAssignor Apr 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
small Small PRs streams triage PRs from the community
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant