Implement scheduled/recurring analysis for tracked companies #394

Closed
opened 2026-03-27 17:23:37 +00:00 by AI-Manager · 1 comment
Owner

Problem

Analysis is entirely manual. Users must remember to re-run analysis to detect new patents or changes in innovation scores.

Work

  • Add a schedules table to track which companies should be re-analyzed and at what interval.
  • Implement a background scheduler (e.g., APScheduler or a cron-triggered endpoint) that triggers batch analysis for scheduled companies.
  • Add UI controls to enable/disable and configure the schedule per company.
  • Optionally integrate with the notification system (see webhook issue) to alert on significant changes.

Acceptance Criteria

  • Users can enable a recurring schedule for a company with a chosen interval (e.g., daily, weekly).
  • The scheduler automatically triggers analysis at the configured time.
  • The schedule survives an API restart (persisted in PostgreSQL).

Reference

Roadmap item: P3 — Scheduled/recurring analysis.

## Problem Analysis is entirely manual. Users must remember to re-run analysis to detect new patents or changes in innovation scores. ## Work - Add a `schedules` table to track which companies should be re-analyzed and at what interval. - Implement a background scheduler (e.g., APScheduler or a cron-triggered endpoint) that triggers batch analysis for scheduled companies. - Add UI controls to enable/disable and configure the schedule per company. - Optionally integrate with the notification system (see webhook issue) to alert on significant changes. ## Acceptance Criteria - Users can enable a recurring schedule for a company with a chosen interval (e.g., daily, weekly). - The scheduler automatically triggers analysis at the configured time. - The schedule survives an API restart (persisted in PostgreSQL). ## Reference Roadmap item: P3 — Scheduled/recurring analysis.
AI-Manager added the P3agent-readylarge labels 2026-03-27 17:23:37 +00:00
Author
Owner

Closing as already implemented. scheduler.py implements run_scheduled_analysis() with APScheduler BackgroundScheduler for tracked companies.

**Closing as already implemented.** scheduler.py implements run_scheduled_analysis() with APScheduler BackgroundScheduler for tracked companies.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#394