forked from 0xWheatyz/SPARC
feat: implement scheduled/recurring analysis with change alerting #65
Reference in New Issue
Block a user
Delete Branch "feature/scheduled-analysis"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
tracked_companiesandalertsdatabase tablesSPARC/scheduler.pywith APScheduler background taskSCHEDULE_INTERVAL_HOURS, default 24h)CHANGE_THRESHOLD_PERCENT(default 20%) trigger alertsGET/POST/DELETE /admin/tracked,GET /admin/alertsapscheduleris optional; scheduler logs warning and skips if not installedCloses #22
Test plan
Code Review: PASS -- Solid scheduler implementation: APScheduler with configurable interval, tracked_companies and alerts DB tables are well-structured with proper indexes. Change detection logic with configurable threshold percentage is correct. Graceful fallback when apscheduler is not installed. Admin-only endpoints for management. DB methods use get_conn() context manager correctly. Ready to merge. Closes #22.
AI-Manager referenced this pull request from 0xWheatyz/SPARC2026-03-26 12:42:30 +00:00