Infrastructure low complexity backend
1
Dependencies
0
Dependents
3
Entities
0
Integrations

Description

Scheduled backend job (cron) that queries for assignments where no contact has been established within 10 days of dispatch. Emits a push notification reminder to the peer mentor and logs the reminder event in assignment_status_logs.

Feature: Encrypted Assignment Dispatch

assignment-reminder-job

Responsibilities

  • Query assignments with status not 'contact_established' older than 10 days
  • Emit push notification reminder to peer mentor
  • Log reminder sent event to assignment_status_logs
  • Avoid duplicate reminders for already-reminded assignments within the window

Interfaces

runReminderCheck(): Promise<void>
getStaleAssignments(thresholdDays: number): Promise<Assignment[]>
sendReminderNotification(assignmentId: string, userId: string): Promise<void>

Relationships

Dependencies (1)

Components this component depends on

Related Data Entities (3)

Data entities managed by this component