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.

Feature: Annual Activity Summary (Peer Mentor Wrapped)

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)

Relationships

Dependencies (1)

Components this component depends on

Related Data Entities (1)

Data entities managed by this component