← All case studies
Data EngineeringHealthcareQPharma · 2025

Checkpointed Batch Pipeline

Legacy file-based batch process rebuilt as a fault-tolerant Jenkins job with checkpointed recovery and completion alerts.

1 runreplaced a multi-day manual process

Context

A critical batch process ran off files, called several services and needed people to babysit it. A failure halfway meant starting again.

Challenge

Make it fully automated and safe to resume after any failure, without changing the downstream services it depends on.

My role

Owned the re-engineering from spec to production.

Architecture

How the system fits together

Checkpointed Batch Pipeline architecture diagramJenkinsscheduled jobOrchestratorPython · 95% testedMongoDBsource recordsCheckpoint storeresume on failureDownstream servicesmulti-service callsAlertsdone · failedreadsave
Infra / opsServiceData storeExternal sourceUser / outputTelemetry / async

Simplified for public sharing; client-specific details are omitted.

Approach

Key engineering decisions

  1. 01

    Spec-driven

    Behaviour was written down as a spec first, then implemented to it with 95% test coverage.

  2. 02

    Checkpointed recovery

    Progress is checkpointed after each unit of work, so a retry resumes where it stopped instead of starting over.

  3. 03

    Orchestrated in Jenkins

    Scheduled runs, MongoDB reads and multi-service calls are orchestrated as one Jenkins job, with alerts on completion or failure.