Annual Summary Scheduler Infrastructure
Component Detail
Infrastructure
medium complexity
backend
1
Dependencies
0
Dependents
1
Entities
0
Integrations
Description
Cron-based infrastructure component that schedules and triggers the annual aggregation job at the start of each calendar year. Runs on Vercel Cron or a managed scheduler, ensuring the aggregation job executes reliably once per year in January. Provides job execution logging and failure alerting.
annual-summary-scheduler
Responsibilities
- Schedule the annual aggregation job to run in January each year
- Monitor job execution and log outcomes
- Retry on transient failure and alert on persistent failure
- Provide manual trigger endpoint for testing and backfill
Interfaces
scheduleAnnualJob(cronExpression)
triggerManually(year)
getLastRunStatus()
getExecutionLog(year)