Skip to main content
KBY Technologies Logo

AWS Step Functions Execution Timeout: Diagnose States.Timeout

High severity Target recovery 35 minutes to identify the timed-out state and recovery pathAmazon Web Services

Overview

Diagnose an AWS Step Functions States.Timeout by separating workflow, task, heartbeat, HTTP Task and downstream-service limits. Change retry, catch or timeout policy only once you understand the execution type and any duplicate side effects.

Markdown, one checkbox per step, for pasting into a ticket.

Diagnose

Symptom

What responders observe.

A Standard or Express workflow stops making progress, fails with States.Timeout, or raises the CloudWatch ExecutionsTimedOut metric. A task can exceed TimeoutSeconds, miss HeartbeatSeconds, hit the fixed HTTP Task duration limit, or inherit a timeout from a downstream integration. Express workflow history depends on configured CloudWatch Logs rather than GetExecutionHistory.

Detection

Metrics, logs and confirmation commands.

  1. Record the execution ARN, state-machine ARN, workflow type, region, failure timestamp and any downstream request ID.

  2. For a Standard workflow, use DescribeExecution and GetExecutionHistory to locate ExecutionTimedOut, TaskTimedOut, ActivityTimedOut or LambdaFunctionTimedOut events and the last entered state.

  3. For an Express workflow, inspect its configured CloudWatch Logs because GetExecutionHistory is unsupported.

  4. Compare the state definition's TimeoutSeconds, TimeoutSecondsPath, HeartbeatSeconds and Retry/Catch clauses with the actual elapsed time.

  5. Check the downstream service logs and latency at the same timestamp; a Step Functions timeout is an outcome, not proof that the orchestration service caused the delay.

Root cause

Why the incident occurred.

  1. A Task or Activity exceeded TimeoutSeconds, or a callback/activity worker failed to report within HeartbeatSeconds.

  2. The entire execution exceeded the state-machine TimeoutSeconds value.

  3. An HTTP Task exceeded its service limit even though a larger TimeoutSeconds was configured.

  4. A downstream Lambda, API, job or service integration stalled or timed out first.

  5. Retry policy amplified a persistent failure, while a missing or incorrectly ordered Catch path allowed States.Timeout to fail the execution.

  6. Express logging was absent or incomplete, hiding the event sequence needed for diagnosis.

Contain and prevent

Blast radius

What else this can affect.

  • The affected execution can stop before compensation or downstream completion is visible to callers.

  • Retries or redrive can duplicate non-idempotent writes, payments, notifications or external API calls.

  • Raising a timeout without fixing the dependency can increase concurrency, cost and time to failure.

Prevention

Controls and guardrails that stop it recurring.

  • Set explicit, evidence-based task and workflow timeouts.

  • For callbacks, set HeartbeatSeconds below TimeoutSeconds.

  • Catch States.Timeout explicitly where the business process has a safe compensation path.

  • Make retried and redriven tasks idempotent and record idempotency keys before enabling automated recovery.

  • Alarm on ExecutionsTimedOut and downstream latency, with separate Standard and Express investigation paths.

  • Review the related AWS timeout triage before raising timeouts.

Fix

Pre-flight checks

Check these before you change anything.

  1. Export the deployed state-machine definition and identify whether it is Standard or Express.

  2. Confirm the failed state and downstream side effects before any redrive or new execution.

  3. Preserve execution history or CloudWatch Logs and redact payload secrets from the incident record.

  4. Confirm the task is idempotent or has a tested compensation path.

  5. Route definition changes through the approved versioned IaC/deployment pipeline with a rollback version or alias.

Commands

# Set environment-specific identifiers without pasting secret payloads.
aws stepfunctions describe-execution --execution-arn "$EXECUTION_ARN" --region "$AWS_REGION"
aws stepfunctions get-execution-history --execution-arn "$EXECUTION_ARN" --region "$AWS_REGION" --reverse-order --max-items 100
aws stepfunctions describe-state-machine --state-machine-arn "$STATE_MACHINE_ARN" --region "$AWS_REGION"

Verify and recover

Verification

Evidence required before you close the incident.

  1. Run one controlled, correlation-ID-tagged execution and confirm it succeeds within the defined timeout.

  2. Confirm the previously timed-out state completes and no duplicate downstream side effect occurs.

  3. Verify ExecutionsTimedOut returns to the established baseline for at least 30 consecutive minutes.

  4. Check Catch, compensation and alarm paths with a non-production or approved failure-injection test.

  5. Retain the old state-machine version or alias through the observation window.

Rollback

The safe way back.

  1. If a timeout, retry or Catch definition change increases failures or duplicate work, return the alias or deployment to the captured previous state-machine version through the approved pipeline.

  2. Stop further redrives, reconcile side effects by correlation ID, and preserve both execution histories for review.

Escalate when

Conditions that need another owner.

  • The failed execution has irreversible or untraceable side effects.

  • The workflow is Express and the required execution logs were not configured.

  • The failure is an HTTP Task service limit, a downstream quota, or a vendor dependency that cannot be changed safely.

  • Redrive eligibility or idempotency cannot be proved.

  • Escalate to the workflow owner and AWS Support with execution ARN, timestamps, event type and redacted history.

The KBY Brief

Fixed? Get the next one before it hits you: The KBY Brief

Practical fixes for the systems you run, by email about twice a week. Unsubscribe at any time.

About this page

Credited to

Dates

Published

Last updated

Corrections

  • : Corrected during a review of published articles. Details

Was this useful?

Reports go to the site owner and are used to correct pages. Corrections are listed at /corrections.

Found this useful? Follow KBY for more like it.

Sources

Based on the vendor sources listed below. Check each step against your environment before acting.

First published 27 August 2026 · Last updated 24 November 2026

More from KBY that goes with this runbook.

Step Functions States.Timeout: Find Which Timeout Fired