forked from 0xWheatyz/SPARC
Implement scheduled/recurring analysis with change alerts #1439
Reference in New Issue
Block a user
Delete Branch "%!s()"
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
Currently users must trigger analyses manually. Periodic re-analysis and alerting on significant changes would support ongoing monitoring.
What to do
schedulestable to the database (company, cron expression, last_run, enabled).Acceptance criteria
References
Roadmap: P3 -- scheduled/recurring analysis.
Already implemented.
SPARC/scheduler.pyprovides scheduled/recurring analysis with APScheduler. It re-analyzes tracked companies on a configurable interval (SCHEDULE_INTERVAL_HOURS) and creates alerts when patent counts change beyond a threshold (CHANGE_THRESHOLD_PERCENT). The scheduler is started during API lifespan startup. Admin endpoints for managing tracked companies and viewing alerts are inSPARC/api.py.Closing as completed.