Expiry Scheduler
Component Detail
Infrastructure
medium complexity
backend
0
Dependencies
0
Dependents
0
Entities
0
Integrations
Description
Scheduled job runner that periodically triggers the Auto-Pause Service to evaluate certificate expiry dates. Manages cron-like timing, retry on failure, and observability for the recurring evaluation cycle. Ensures consistent, unattended execution without manual intervention.
expiry-scheduler
Sources & reasoning
HLF-specific automation tied to certification module. Source places certification in Phase 3 (§5 'Kursadministrasjon og sertifisering (HLF + Barnekreftforeningen)'), and auto-pause depends on the certificate lifecycle, so Growth & Engagement matches.
-
docs/source/likeperson.md · line 49HLF kobler dette til sertifisering: ved utgått sertifikat forsvinner likepersonen fra lokallagets nettsider automatisk.
-
docs/source/likeperson.md · line 72Kursadministrasjon og sertifisering: Påmelding til kurs i appen, automatisk påminnelse ved utløp, digitale sertifikater.
Responsibilities
- Trigger the Auto-Pause Service on a defined recurring schedule
- Manage job locking to prevent concurrent runs across instances
- Retry failed runs with backoff and surface persistent failures
- Emit metrics and logs for each evaluation cycle
- Allow operational override to run an evaluation on demand
Interfaces
scheduleEvaluation(cronExpression): JobHandle
runEvaluationNow(): JobRunResult
getLastRunStatus(): JobStatus