Add state.retention option to prevent big state buckets#6925
Merged
Conversation
state.retention option to prevent big state buckets
Contributor
|
@vimtor just finished deploying to my test stage I've been using for a long time and it seems to have worked quite well. I got Codex to summarize the before/after and logs in case any of this is useful for you:
|
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.

Summary
state.retentionto keep the latest completed state snapshotsBehavior
Retention counts completed updates, not days. Omitted retention keeps all history. Pruning runs after an update and failures are non-fatal.
On AWS, retained snapshots become recovery history; noncurrent
appcheckpoints and stale lock versions are removed. On Cloudflare R2 and local homes, stale history objects are deleted explicitly.Tests
bun run test:cligo test ./pkg/project/...bun run typecheckbun run build:cligit diff --checkbun run build:platformcompleted TypeScript bundling, but local Docker reported that its driver does not support multi-platform builds; command exited 0.Supersedes #6669.