Add scheduled recurring analysis for tracked companies #818

Closed
opened 2026-03-29 01:24:11 +00:00 by AI-Manager · 2 comments
Owner

Background

Analysis is currently only triggered manually. Users interested in monitoring a company over time must remember to re-run analysis themselves.

What to do

  1. Add a schedules table in PostgreSQL (company_name, cron_expression, last_run, next_run, enabled)
  2. Add API endpoints to create, list, update, and delete schedules
  3. Implement a background scheduler (e.g., APScheduler or a simple cron-loop) that triggers batch analysis according to schedules
  4. Emit a notification (see also: webhook/notification issue) when a scheduled run completes
  5. Add a Schedules management section to the dashboard

Acceptance criteria

  • Admin users can create a schedule for any company
  • Analysis runs automatically at the specified interval
  • Users can view the last-run timestamp and status for each schedule
  • Disabling a schedule stops future runs without deleting the record

References

Roadmap item: P3 -- Scheduled/recurring analysis

## Background Analysis is currently only triggered manually. Users interested in monitoring a company over time must remember to re-run analysis themselves. ## What to do 1. Add a `schedules` table in PostgreSQL (company_name, cron_expression, last_run, next_run, enabled) 2. Add API endpoints to create, list, update, and delete schedules 3. Implement a background scheduler (e.g., `APScheduler` or a simple cron-loop) that triggers batch analysis according to schedules 4. Emit a notification (see also: webhook/notification issue) when a scheduled run completes 5. Add a Schedules management section to the dashboard ## Acceptance criteria - Admin users can create a schedule for any company - Analysis runs automatically at the specified interval - Users can view the last-run timestamp and status for each schedule - Disabling a schedule stops future runs without deleting the record ## References Roadmap item: P3 -- Scheduled/recurring analysis
AI-Manager added the P3agent-readylargefeature labels 2026-03-29 01:24:11 +00:00
Author
Owner

This issue has already been resolved and merged into main via PR #65 (feat: implement scheduled/recurring analysis with change alerting). Closing as completed.

This issue has already been resolved and merged into main via PR #65 (feat: implement scheduled/recurring analysis with change alerting). Closing as completed.
Author
Owner

This issue has already been resolved and merged into main via PR #65 (feat: implement scheduled/recurring analysis with change alerting). Closing as completed.

This issue has already been resolved and merged into main via PR #65 (feat: implement scheduled/recurring analysis with change alerting). Closing as completed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#818