Skip to content

tako: avoid panic when worker group is missing in multi-node solver - #1153

Closed
pranav-sivaraman wants to merge 1 commit into
It4innovations:mainfrom
pranav-sivaraman:tako-solver-missing-worker-group
Closed

pranav-sivaraman wants to merge 1 commit into
It4innovations:mainfrom
pranav-sivaraman:tako-solver-missing-worker-group

Conversation

@pranav-sivaraman

Copy link
Copy Markdown

Disclaimer: AI helped investigate and solve this issue.

While testing multi-node tasks, I found that autoscaling crashed the server. Autoscaling uses fake workers whose groups aren't registered in worker_groups. When a multi-node task was waiting and enough real workers were free, the solver called unwrap() on that missing group and panicked. This PR skips those workers instead.

Added a regression test in tests/test_query.rs.

Signed-off-by: Pranav Sivaraman <pranavsivaraman@gmail.com>
Copilot AI balanced review requested due to automatic review settings October 26, 2026 12:43

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@spirali

spirali commented Oct 27, 2026

Copy link
Copy Markdown
Collaborator

Good catch. The bug is real but your fix is not correct. The unwrap should stay in the place and multi-node tasks should not be passed into query schedule round. I have fixed it in #1155. Thank you.

@pranav-sivaraman
pranav-sivaraman deleted the tako-solver-missing-worker-group branch October 27, 2026 12:26
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.

3 participants