TECHNOLOGY

Temporal distinguishes an Activity attempt from its total retry window

In this article
THE QUICK TAKE

Choose timeout scope deliberately: a bounded attempt does not by itself impose the same bound on the complete retrying Activity.

Identify which wait the user experiences

An agent’s model Activity has a per-attempt timeout, yet the overall task remains pending much longer. Temporal distinguishes an Activity Execution from the task attempts that compose it. The failure-detection guide assigns Start-To-Close to an individual attempt and Schedule-To-Close to the overall Activity. A caller waiting for classification usually cares about the latter duration, not just each isolated provider call.

Bound the attempt and the complete execution

Start-To-Close begins when a worker starts the attempt. If a retry is scheduled, that attempt timer resets. Schedule-To-Close begins with the initial scheduling and covers the chain through its final closed state, including retries. These limits answer different operational questions. Set a realistic attempt duration for the outside work and an overall allowance appropriate to the task’s usefulness, rather than deriving the whole budget from a repeated per-attempt value alone.

Keep queue pickup separate

Schedule-To-Start concerns waiting for a worker to pick up the task. The guide says its timeout is nonretryable by design: placing the same task back in the same queue would not resolve the absence of a worker. Do not diagnose this queue-capacity problem as a slow model response. Compare worker pickup evidence with actual provider-call timing before increasing an API timeout that has not even started.

Interpret retries with their own policy

The retry-policy guide explains retry limits and distinguishes default Activity retry behavior from Workflow Execution policies. A retry policy controls another attempt; it does not imply an unlimited useful waiting period once an overall timeout applies. The Activity guide also notes that attempts can repeat external code. Preserve the logical operation identity across those attempts rather than treating every retry as a new requested action.

Observe the complete budget in a controlled run

Use a harmless delayed operation to distinguish queue wait, attempt execution, backoff and final outcome. Task budgets help express the acceptable end-to-end wait; tool observations identify where time was spent. Report which timeout ended the Activity and whether additional external work needs reconciliation. A short attempt timeout is useful failure detection, but only the appropriate overall contract explains how long the waiting agent task may remain unresolved.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles