Each sub-step has its own 60-second timeout, but the whole job must answer within 90 seconds.
- AGive the JOB a deadline and pass the REMAINING budget down to every step
- BRaise every step’s timeout to 90 seconds for consistency
- CDrop the per-step timeouts and time only the whole job
- DRun all the steps in parallel so the total cannot exceed 60 seconds
Answer: A
Give the JOB a deadline and pass the REMAINING budget down to every step
Why
A per-step limit knows nothing about the promise you made to the caller: three steps of 40 seconds each break a 90-second promise while every step is «within timeout». Only a shared, shrinking budget can. Parallelism helps when steps are independent - it is not a way to satisfy a deadline you never expressed.
More on Way of the Agent
- Course programThe first three modules are free: start in the browser or the app, no card needed.
- Library: guides, skills and promptsReady prompt templates, grouped into collections.
- AI ChroniclesSourced stories from the history of AI.
- ConceptsPlain-language explainers of agent engineering.
- Learn AI agentsApps and courses for learning AI agents, compared honestly.
Real situations from building agents - with the answer and why.
Solve a new one every day on the Path