Part 9 of 13 · 1 min read
Mistakes that lose or corrupt a run
Common mistakes, and what the example does not do.
- Keeping the run state in process memory (lost at a deploy; not for production, as the in-memory saver's documentation says).
- Checkpointing but not making effects idempotent.
- Replaying by calling the model again.
- No schema version, so any state change breaks old runs.
- Never pruning checkpoints.
- Resuming without re-checking the premise.
- Putting secrets or full personal data in checkpoints without a retention rule (Level 10 covers it).
- Unbounded waits with no expiry.