Avoid reaching the history quota - Amazon Step Functions
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China.

Avoid reaching the history quota

Amazon 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.

You can also implement a pattern that uses an Amazon 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 Continuing as a New Execution tutorial.