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.

Feature: Certification Expiry Auto-Pause

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.

  • HLF kobler dette til sertifisering: ved utgĂĄtt sertifikat forsvinner likepersonen fra lokallagets nettsider automatisk.
  • Kursadministrasjon 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