Infrastructure medium complexity backend
1
Dependencies
0
Dependents
1
Entities
0
Integrations

Description

Cron-based scheduler that triggers the Notification Rule Engine at configured intervals. Runs as a Vercel Cron job or equivalent, ensuring the engine evaluates all active rules periodically. Handles execution locking to prevent overlapping runs in distributed environments.

Feature: Notification Scenarios

rule-engine-scheduler

Responsibilities

  • Trigger rule engine evaluation on a configured schedule
  • Acquire and release execution locks to prevent concurrent runs
  • Report execution results and errors to monitoring

Interfaces

start(): Promise<void>
stop(): Promise<void>
getScheduleConfig(): CronConfig
getLastExecutionTime(): Promise<Date | null>
acquireLock(jobId: string): Promise<boolean>
releaseLock(jobId: string): Promise<void>

Relationships

Dependencies (1)

Components this component depends on

Related Data Entities (1)

Data entities managed by this component