01 The snapshot
Do the slow part once. Keep the machine warm. Coming
A clean machine for every job means every job sets up again: the same clone, the same installs, the same warm-up.
So a warm-up job does the slow part once. It clones the repo, installs dependencies, warms the build and starts Postgres.
Then it saves a snapshot of the whole machine, memory and disk both.
warm-up job, snapshot.key=app-main
- repo cloned
- dependencies installed
- build warm
- Postgres running
snapshot saved, memory + disk