AWS Step Functions Execution Timeout: Diagnose States.Timeout
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.
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.
Record the execution ARN, state-machine ARN, workflow type, region, failure timestamp and any downstream request ID.
For a Standard workflow, use DescribeExecution and GetExecutionHistory to locate ExecutionTimedOut, TaskTimedOut, ActivityTimedOut or LambdaFunctionTimedOut events and the last entered state.
For an Express workflow, inspect its configured CloudWatch Logs because GetExecutionHistory is unsupported.
Compare the state definition's TimeoutSeconds, TimeoutSecondsPath, HeartbeatSeconds and Retry/Catch clauses with the actual elapsed time.
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.
A Task or Activity exceeded TimeoutSeconds, or a callback/activity worker failed to report within HeartbeatSeconds.
The entire execution exceeded the state-machine TimeoutSeconds value.
An HTTP Task exceeded its service limit even though a larger TimeoutSeconds was configured.
A downstream Lambda, API, job or service integration stalled or timed out first.
Retry policy amplified a persistent failure, while a missing or incorrectly ordered Catch path allowed States.Timeout to fail the execution.
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.
Export the deployed state-machine definition and identify whether it is Standard or Express.
Confirm the failed state and downstream side effects before any redrive or new execution.
Preserve execution history or CloudWatch Logs and redact payload secrets from the incident record.
Confirm the task is idempotent or has a tested compensation path.
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.
Run one controlled, correlation-ID-tagged execution and confirm it succeeds within the defined timeout.
Confirm the previously timed-out state completes and no duplicate downstream side effect occurs.
Verify ExecutionsTimedOut returns to the established baseline for at least 30 consecutive minutes.
Check Catch, compensation and alarm paths with a non-production or approved failure-injection test.
Retain the old state-machine version or alias through the observation window.
Rollback
The safe way back.
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.
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.
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
Handling errors in Step Functions workflows
Cited for: Defines States.Timeout, retry and Catch semantics, including the distinction from States.TaskFailed.
Task workflow state
Cited for: Documents TimeoutSeconds, TimeoutSecondsPath and the HTTP Task timeout boundary.
Restarting executions with redrive
Cited for: Documents execution inspection and the retry behaviour of redriven executions.
Monitoring Step Functions metrics using CloudWatch
Cited for: Defines ExecutionsTimedOut and the recommended execution metrics baseline.
Recommended reading
More from KBY that goes with this runbook.
Related runbooks
ALB Targets Turn Unhealthy With Target.Timeout After a Security Group Change on the Instances
Application Load Balancer targets that turn unhealthy with Target.Timeout after an instance security group change are blocking the health checks. Confirm with describe-target-health and the security group rules, then add one inbound rule whose source is the load balancer security group on the traffic and health check ports, keeping its rule ID for rollback and never opening the instances wider.
GitLab CI Services From Amazon ECR Fail to Pull After 12 Hours: Switch to the ECR Credential Helper
GitLab CI jobs whose image or services come from a private Amazon ECR registry fail with no basic auth credentials or HTTP 403 when DOCKER_AUTH_CONFIG holds a pasted ECR token, which lasts 12 hours. Refresh it to unblock, then install docker-credential-ecr-login on a self-managed runner with a pull-only IAM role and use credHelpers.
AWS DRS Replication Agent Crash or Agent Not Seen
Diagnose an AWS Elastic Disaster Recovery replication agent crash or AGENT_NOT_SEEN state by checking the source service, agent logs, regional endpoint access and TCP 1500 path before any restart or reinstall that could trigger a rescan and affect RPO.
