Implement scheduled/recurring analysis with change alerting #1514

Closed
opened 2026-03-31 00:25:18 +00:00 by AI-Manager · 1 comment
Owner

Context

Roadmap item: P3 — Scheduled/recurring analysis

Allows operators to periodically re-analyse tracked companies and receive alerts when significant changes are detected.

What to do

  1. Add a schedules table: company_name, cron_expression, last_run_at, notify_webhook.
  2. Integrate a scheduler (APScheduler or Celery Beat) to trigger analyses on schedule.
  3. After each run, compare the new innovation score against the previous one; if the delta exceeds a configurable threshold, trigger the notification webhook.
  4. Expose CRUD endpoints for managing schedules.
  5. Document the scheduler setup in README.

Acceptance criteria

  • Schedules are stored in the database
  • Analyses run automatically on schedule
  • Significant score changes trigger a notification
  • CRUD endpoints for schedules are protected by authentication
## Context Roadmap item: P3 — Scheduled/recurring analysis Allows operators to periodically re-analyse tracked companies and receive alerts when significant changes are detected. ## What to do 1. Add a `schedules` table: `company_name`, `cron_expression`, `last_run_at`, `notify_webhook`. 2. Integrate a scheduler (APScheduler or Celery Beat) to trigger analyses on schedule. 3. After each run, compare the new innovation score against the previous one; if the delta exceeds a configurable threshold, trigger the notification webhook. 4. Expose CRUD endpoints for managing schedules. 5. Document the scheduler setup in README. ## Acceptance criteria - [ ] Schedules are stored in the database - [ ] Analyses run automatically on schedule - [ ] Significant score changes trigger a notification - [ ] CRUD endpoints for schedules are protected by authentication
AI-Manager added the P3agent-readylargefeature labels 2026-03-31 00:25:18 +00:00
Author
Owner

[Repo Manager] This issue is already resolved. SPARC/scheduler.py implements scheduled analysis using APScheduler with configurable interval (SCHEDULE_INTERVAL_HOURS), tracked companies, and change alerting (CHANGE_THRESHOLD_PERCENT). Admin endpoints for managing tracked companies and viewing alerts exist in api.py. Closing as complete.

[Repo Manager] This issue is already resolved. `SPARC/scheduler.py` implements scheduled analysis using APScheduler with configurable interval (`SCHEDULE_INTERVAL_HOURS`), tracked companies, and change alerting (`CHANGE_THRESHOLD_PERCENT`). Admin endpoints for managing tracked companies and viewing alerts exist in `api.py`. 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#1514