﻿# Temporal distinguishes an Activity attempt from its total retry window

Temporal Start-To-Close limits an Activity attempt, while Schedule-To-Close bounds the overall execution including retries; queue pickup is another timeout with different behavior.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/guide-temporal-activity-attempt-total-timeout/
Language: en

## 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](https://docs.temporal.io/encyclopedia/detecting-activity-failures) 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](https://docs.temporal.io/encyclopedia/retry-policies) 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](https://docs.temporal.io/activity-definition) 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](/journal/learn-codex-task-budgets/) help express the acceptable end-to-end wait; [tool observations](/journal/learn-codex-tool-observation/) 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.
