Certificate Expiry Scheduler
Component Detail
Infrastructure
medium complexity
backend
0
Dependencies
0
Dependents
5
Entities
0
Integrations
Description
Supabase Edge Function that runs on a daily cron schedule to check certification expiry dates across all HLF peer mentors. Automatically updates availability status to paused for any mentor whose certificate has expired and triggers coordinator notifications for each affected mentor. Ensures compliance by preventing assignment dispatch to uncertified volunteers.
certificate-expiry-scheduler
Responsibilities
- Run daily cron check for expired peer mentor certificates
- Automatically set availability to paused on certificate expiry
- Trigger coordinator notifications for auto-paused mentors
- Log expiry events for audit trail
Interfaces
runDailyExpiryCheck()
findExpiredCertificates()
autoPauseMentor(mentorId)
logExpiryEvent(mentorId, certificateId)
getNextScheduledRun()
Related Data Entities (5)
Data entities managed by this component