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

Description

A scheduled background job that runs on a recurring cadence to invoke the CertificateRenewalNotificationService. Manages job registration, execution timing, and failure recovery so that certificate expiry checks run reliably without manual intervention. Ensures the notification pipeline fires consistently even across server restarts or deployment cycles.

Feature: Certificate Renewal Reminder

renewal-reminder-scheduler

Sources & reasoning

Line 114 explicitly states 'automatisk pÄminnelse ved utlÞp' as a HLF certification requirement. Line 80 establishes that expired certificates must trigger removal from public listings, which the auto-pause integration fulfills. Both are listed in Phase 3 of the roadmap (section 5), mapping to v1.1 by ordinal position.

  • docs/source/likeperson.md · line 114
    Kursadministrasjon og sertifisering: PÄmelding til kurs i appen, automatisk pÄminnelse ved utlÞp, digitale sertifikater.
  • docs/source/likeperson.md · line 80
    HLF kobler dette til sertifisering: ved utgÄtt sertifikat forsvinner likepersonen fra lokallagets nettsider automatisk. Blindeforbundet hÄndterer dette manuelt og har ikke fremhevet behovet.

Responsibilities

  • Register and configure the recurring cron job for certificate expiry checks
  • Invoke CertificateRenewalNotificationService on each scheduled tick
  • Handle job execution failures with retry logic and error logging
  • Prevent overlapping job runs using distributed locking or job-state guards
  • Provide observability hooks for monitoring job health and last-run timestamps

Interfaces

registerJob(schedule: CronExpression): void
runNow(): Promise<void>
getLastRunStatus(): JobRunStatus
setSchedule(cronExpression: string): void