[scheduler] Fix race condition in multi-scheduler environments.#2191
Merged
DiegoTavares merged 5 commits intoAcademySoftwareFoundation:masterfrom Mar 9, 2026
Merged
Conversation
When multiple instances or async tasks are updating the same host, there was a race condition that would cause over booking errors instead of gracefully treating the condition that caused the race. This PR is intended to reduce the number of the database error: WARN cue_scheduler::pipeline::dispatcher::actor: Wasn't able to dispatch all frames: FailedToUpdateResources( × (57b07e8d-6813-4fc5-8f71-132e968f4e29) Failed to update host resources ├─▶ error returned from database: unable to allocate additional memory ╰─▶ unable to allocate additional memory )
These messages are being handled as warnings when they are not really abnormal.
Collaborator
|
Hi @DiegoTavares, Thanks for your contribution. I’ve added a few comments with suggestions that could help improve the PR. |
ramonfigueiredo
approved these changes
Mar 9, 2026
Collaborator
ramonfigueiredo
left a comment
There was a problem hiding this comment.
Approved! Thanks, @DiegoTavares
f6ecd97
into
AcademySoftwareFoundation:master
22 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When multiple instances or async tasks are updating the same host, there was a race condition that would cause over booking errors instead of gracefully treating the condition that caused the race.
This PR is intended to reduce the number database errors like the following:
AI Disclosure
Claude Code Opus was used to brainstorm the root cause of this problem and also to review the changes before pushing the PR.