Avoid reaching the history quota - AWS Step Functions

Avoid reaching the history quota

AWS Step Functions has a hard quota of 25,000 entries in the execution event history. To avoid reaching this quota for long-running executions, you can start a new state machine execution directly from the Task state of a running execution. To start such nested workflow executions, use Step Functions' StartExecution API action in the parent state machine along with the necessary parameters. For more information about using nested workflows, see Start Workflow Executions from a Task State or Using a Step Functions API action to continue a new execution tutorial.

You can also implement a pattern that uses an AWS Lambda function that can start a new execution of your state machine to split ongoing work across multiple workflow executions. For more information, see the Using a Lambda function to continue a new execution tutorial.