Persistence: checkpointers, threads, and durability
Notebook· 08.01· 120–150 min· Lesson 64 of 129
The notebook opens in your lab, in a new tab. If your server is stopped, it starts first (a few seconds).
By the end you can
- Read a checkpoint (
StateSnapshot):values,next,tasks,metadata,config,parent_config. - Persist threads in SQLite so they survive a restart, and say when Postgres is the right next step.
- Measure the three durability modes (
"exit","async","sync") by killing a run on purpose. - Keep a checkpoint database small (
delete_thread, trimming old checkpoints) and serialize state safely.
Before you start
Module 07 (graphs, InMemorySaver, get_state_history); Lesson 03.03 (short-term memory).
