Restore analytics raw snapshot; pause fact backfill - #13
Merged
Conversation
The nested prior-session IN still re-scanned the whole window and timed out under SurrealDB contention, and the leased backfill kept resetting connections after #12. Intersect the idle-window candidates in Rust, give the raw path eight seconds, and leave the backfill worker off until explicitly enabled. Co-authored-by: Cursor <cursoragent@cursor.com>
5 tasks
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
/analyticsstill standby: logs show continuous fact backfill plusConnection reset/ 3s snapshot timeouts.session_id IN (SELECT … whole window)from the legacy snapshot; probe only the 30-minute idle window and intersect in Rust; raise the raw timeout to 8s.ANALYTICS_FACTS_BACKFILL=1opt-in so deploy stops the worker by default and the dashboard can recover.Test plan
just checkANALYTICS_FACTS_BACKFILLbackfill worker idleANALYTICS_FACTS_BACKFILL=1when deliberately finishing fact rolloutMade with Cursor