feat: Add automatic ingestion scheduling#104
Merged
Merged
Conversation
Server was only ingesting when query tools were called (lazy via ensure_fresh_data). If no queries were made, data went stale indefinitely — last ingestion was a week old. Changes: - Add FastMCP lifespan with background asyncio task for periodic ingest (every 5 min + initial ingest on startup) - Add client-side push schedule templates (LaunchAgent + systemd timer) - Add install/uninstall scripts for push schedule - Wire push schedule into `make install-client` Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Code ReviewSummaryThis PR adds automatic ingestion scheduling: a FastMCP lifespan with background asyncio task for server-side periodic ingestion (startup + every 5 min), and client-side push scheduling via LaunchAgent/systemd timer templates wired into Issues FoundCriticalNone ImportantNone Suggestions
VerdictREQUEST_CHANGES - Three minor suggestions: unused variable in install script, unused parameter naming convention, and documentation gap for the new client push feature. Automated review by Claude Code |
14 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
make install-clientensure_fresh_data()as sole ingestion triggerProblem: Ingestion only ran when query tools were called. If no queries were made, data went stale — last ingestion was Jan 31 despite the server being active for a week.
Test plan
make checkpasses (395 tests, lint, format)get_status()showslast_ingestionwithin seconds of server startFixes #103
🤖 Generated with Claude Code