Skip to content

Keep a cursor during retention to ensure cleanup doesn't get stuck - #420

Merged
Thom Chiovoloni (thomcc-work) merged 1 commit into
mainfrom
thomcc/retention-cursor
Oct 9, 2026
Merged

Thom Chiovoloni (thomcc-work) merged 1 commit into
mainfrom
thomcc/retention-cursor

Conversation

@thomcc-work

Copy link
Copy Markdown
Contributor

This is a follow-up from the multi-database work that was noticed when working on landing the v0.2.9 code. During cleanup we select the first 1000 candidates, but we can't actually clean all of these up (they might look finished in our tables but still be considered running in the implementation). If there are 1000 or more of these, we'll get stuck forever.

This PR fixes that, by keeping a cursor.

@thomcc-work
Thom Chiovoloni (thomcc-work) merged commit 7b47027 into main Oct 9, 2026
9 checks passed
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.

2 participants