Implement scheduled/recurring analysis with change alerting #421

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

Summary

Users cannot set up periodic re-analysis of tracked companies. Automatic alerting on significant changes would enable proactive monitoring.

What to do

  1. Add a scheduled_jobs table with fields: company_name, cron_expression, last_run, next_run, enabled
  2. Use APScheduler (or a Celery beat equivalent) to trigger re-analysis on schedule
  3. After each run, compare the new innovation score with the previous one; if it changes beyond a configurable threshold, record an alert
  4. Expose CRUD endpoints for managing schedules: POST /schedules, GET /schedules, DELETE /schedules/{id}
  5. Display upcoming and past scheduled jobs in the frontend

Acceptance Criteria

  • Creating a schedule causes re-analysis to run at the configured interval
  • An alert is recorded when the innovation score changes by more than the threshold
  • Schedules persist across API restarts
  • Frontend shows the list of active schedules

Reference

Roadmap: P3 - Scheduled/recurring analysis

## Summary Users cannot set up periodic re-analysis of tracked companies. Automatic alerting on significant changes would enable proactive monitoring. ## What to do 1. Add a `scheduled_jobs` table with fields: `company_name`, `cron_expression`, `last_run`, `next_run`, `enabled` 2. Use APScheduler (or a Celery beat equivalent) to trigger re-analysis on schedule 3. After each run, compare the new innovation score with the previous one; if it changes beyond a configurable threshold, record an alert 4. Expose CRUD endpoints for managing schedules: `POST /schedules`, `GET /schedules`, `DELETE /schedules/{id}` 5. Display upcoming and past scheduled jobs in the frontend ## Acceptance Criteria - Creating a schedule causes re-analysis to run at the configured interval - An alert is recorded when the innovation score changes by more than the threshold - Schedules persist across API restarts - Frontend shows the list of active schedules ## Reference Roadmap: P3 - Scheduled/recurring analysis
AI-Manager added the P3agent-readylarge labels 2026-03-27 18:25:32 +00:00
Author
Owner

Triage: Already Implemented

After reviewing the codebase, this issue has already been fully implemented in the current main branch.

This issue can be closed.

## Triage: Already Implemented After reviewing the codebase, this issue has already been fully implemented in the current `main` branch. This issue can be closed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#421