You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Build has drifted: This PR's base is out of sync with its target branch, so coverage data may include unrelated changes.
Quick fix: rebase this PR. Learn more →
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
Shutdown can hang when a workflow fails while a sibling is still running, and canceled RP tasks produce inconsistent states between RPEnactor and Bookkeeper.
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
Shutdown can skip completed workflows’ execution records and leave resources tracked, while enactor tests bypass production status mapping and fail to verify stored failure statuses.
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
A critical shutdown race can overwrite FAILED with EXECUTING when another batch is queued, and the tests do not verify production mappings or internal states for failed and canceled tasks.
Prevent queued batches from overwriting FAILED during termination
src/socm/bookkeeper/bookkeeper.py:643
When a failed batch has another batch queued, this guard can still leave the campaign in EXECUTING. terminate() shuts down the backend before setting _terminate_event, allowing work() to start the next batch and overwrite FAILED at lines 425–428 while shutdown is pending. Signal the worker before backend shutdown and synchronize terminal-state updates with the worker's check before starting another batch.
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
Shutdown can let the Bookkeeper monitor exit before an in-flight DONE callback arrives, leaving completed workflows unrecorded; a final _release_finished() call is needed after the enactor and both Bookkeeper threads stop.
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. Try requesting a review at a lower effort level.
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.
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
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.
It closes #158