Checkpointed Batch Pipeline
Legacy file-based batch process rebuilt as a fault-tolerant Jenkins job with checkpointed recovery and completion alerts.
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
Simplified for public sharing; client-specific details are omitted.
Approach
Key engineering decisions
- 01
Spec-driven
Behaviour was written down as a spec first, then implemented to it with 95% test coverage.
- 02
Checkpointed recovery
Progress is checkpointed after each unit of work, so a retry resumes where it stopped instead of starting over.
- 03
Orchestrated in Jenkins
Scheduled runs, MongoDB reads and multi-service calls are orchestrated as one Jenkins job, with alerts on completion or failure.