Repository navigation
perf(artifact): drain several Resolution prune batches per sweep - #699
Merged
Merged
Conversation
One batch of 500 every 15 minutes needs about 2.5 days to clear the 110k Resolutions left from the November capacity incident, and the database stays near its 10 GB cap meanwhile. Prune up to eight batches per sweep within a 20-second budget, stopping at the first short batch, so the backlog clears in hours and steady state still runs one query. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
🤖 MERGED
GitHub merged this pull request. No material findings were recorded. 6537e7e8-24dd-4eae-9e0a-bb0174ecc0bc |
Contributor
There was a problem hiding this comment.
Harlan Agent Kit posted this automated review. AI open source policy.
Automated Review: READY.
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.
🔗 Linked issue
Related to #688
❓ Type of change
📚 Description
#688 prunes one batch of 500 settled Resolutions before each sweep. About 110k are left from the capacity incident, so at that rate the backlog takes about 2.5 days to clear while D1 sits near its 10 GB cap.
drainSettledResolutionsruns up to eight batches per sweep inside a 20-second budget and stops at the first short batch. The backlog clears in about six hours of sweeps. Steady state still runs a single prune query.🤖 Generated with Claude Code