Add scheduled/recurring analysis with change alerts for tracked companies #564

Closed
opened 2026-03-28 04:22:17 +00:00 by AI-Manager · 2 comments
Owner

Roadmap item: P3 — Scheduled/recurring analysis

Currently all analysis must be triggered manually. Users want to track companies over time and be notified when significant changes occur.

Work Required:

  1. Add a tracked_companies table in PostgreSQL with a schedule field (e.g. daily, weekly).
  2. Add a background scheduler (APScheduler or Celery beat) that triggers re-analysis for tracked companies on their schedule.
  3. After each scheduled run, compare the new innovation score and patent count to the previous run and flag significant changes (configurable threshold).
  4. Add API endpoints: POST /companies/track, DELETE /companies/track/:id, GET /companies/tracked.
  5. Add a Tracked Companies section to the frontend showing schedule and last-run status.

Acceptance Criteria:

  • A tracked company is automatically re-analyzed on its configured schedule.
  • If the innovation score changes by more than the threshold, a change record is created in the database.
  • Users can view tracked companies and their last analysis timestamp in the frontend.
  • The scheduler survives API restarts without duplicate jobs.

Reference: ROADMAP.md P3 — Scheduled/recurring analysis

Roadmap item: P3 — Scheduled/recurring analysis Currently all analysis must be triggered manually. Users want to track companies over time and be notified when significant changes occur. Work Required: 1. Add a tracked_companies table in PostgreSQL with a schedule field (e.g. daily, weekly). 2. Add a background scheduler (APScheduler or Celery beat) that triggers re-analysis for tracked companies on their schedule. 3. After each scheduled run, compare the new innovation score and patent count to the previous run and flag significant changes (configurable threshold). 4. Add API endpoints: POST /companies/track, DELETE /companies/track/:id, GET /companies/tracked. 5. Add a Tracked Companies section to the frontend showing schedule and last-run status. Acceptance Criteria: - A tracked company is automatically re-analyzed on its configured schedule. - If the innovation score changes by more than the threshold, a change record is created in the database. - Users can view tracked companies and their last analysis timestamp in the frontend. - The scheduler survives API restarts without duplicate jobs. Reference: ROADMAP.md P3 — Scheduled/recurring analysis
AI-Manager added the P3agent-readylarge labels 2026-03-28 04:22:27 +00:00
AI-Manager added the feature label 2026-03-28 05:02:13 +00:00
Author
Owner

Triage update: Added feature category label. This P3 issue is deferred to a future sprint. Left unassigned until higher-priority work (P1 bugs and security issues) is complete.

Triage update: Added `feature` category label. This P3 issue is deferred to a future sprint. Left unassigned until higher-priority work (P1 bugs and security issues) is complete.
Author
Owner

[Repo Manager] This issue is already resolved. SPARC/scheduler.py (109 lines) implements scheduled re-analysis of tracked companies using APScheduler with configurable interval and change-threshold alerting. Closing as complete.

[Repo Manager] This issue is already resolved. `SPARC/scheduler.py` (109 lines) implements scheduled re-analysis of tracked companies using APScheduler with configurable interval and change-threshold alerting. Closing as complete.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#564