Service Layer medium complexity backend
0
Dependencies
0
Dependents
3
Entities
0
Integrations

Description

Supabase Edge Function running on a cron schedule that detects assignments where no completion event exists and the last state change exceeds the configured threshold (default 10 days). Enqueues push notifications to the responsible peer mentor and notifies the coordinator. Configurable threshold per organization.

Feature: Assignment Status Tracking

auto-reminder-service

Responsibilities

  • Query assignments exceeding the inactivity threshold with no terminal state
  • Enqueue push notifications to peer mentor and coordinator
  • Log reminder events to prevent duplicate notifications
  • Support per-organization threshold configuration

Interfaces

runReminderScan()
getStaleAssignments(thresholdDays)
sendReminderNotification(assignmentId, recipientId)
hasReminderBeenSent(assignmentId, reminderType)
recordReminderSent(assignmentId, reminderType, sentAt)
getOrganizationReminderConfig(organizationId)
updateReminderThreshold(organizationId, days)

Related Data Entities (3)

Data entities managed by this component