Paths Subjects Questions Quizzes Pricing Search
Advanced Open Free

Which Agents Rerun When You Resume a Stopped Workflow

A workflow fans out four agents via pipeline(), starting them in order: A, B, C, D. You stop the run while B is still in progress — A, C, and D had all already finished by that point.

On resume, which agents actually rerun?

Solution

The correct answer is "B, C, and D — replay follows start order, not finish order."

Two rules govern resume: an agent still running when you stopped isn't saved and starts over, and replay follows the order agents started, not the order they finished — cached results stop at the first agent that didn't finish by the time you stopped, and every agent that started after that one reruns too, even if it had already completed. Here, B never finished, so it reruns; C and D started after B, so they rerun as well despite having finished; only A, which started and finished before B, comes back from cache.

The distractors get the rule backwards or drop it entirely: it isn't just B (C and D are not spared just because they finished); it isn't all four (A's cached result does survive); and it isn't just the last agent started — the rule is about the first unfinished agent in start order, not the last one launched.

Share this question

← Back to Claude Code Workflows and Agent Teams practice

We use cookies for product analytics to improve OmniAtlas. See our Privacy Policy.