- A workflow fails due to transient issues (network timeouts, temporary resource unavailability)
- You want to avoid re-running expensive or time-consuming tasks that already completed successfully
- You need to conserve compute resources by not repeating completed work
When you recover a workflow execution, TrueFoundry automatically identifies
the failed task and resumes execution from that point. All previously
completed tasks retain their outputs and are not re-executed.
How to Recover a Failed Workflow Execution
To recover a failed workflow execution, you need:- The Application ID of the application/workflow
- The Execution ID of the failed execution

Using the REST API
You can recover a failed workflow execution by making a POST request to the recover endpoint:API Parameters
| Parameter | Type | Description |
|---|---|---|
application-id | string | The unique identifier of the application. Found in the application/workflow details page URL. |
execution-id | string | The unique identifier of the failed execution you want to recover. Found in the execution details page. |
Authentication
The API requires a valid TrueFoundry API token passed in theAuthorization header as a Bearer token. You can generate an API token from the TrueFoundry UI under your account settings. For more information, see Generating TrueFoundry API Keys.
Example: Recovering a Failed Workflow
Let’s say you have a workflow with three tasks wheretask_2 failed:
task_2 fails after task_1 completes successfully, you can recover the execution:
task_1will not be re-executed (its output is preserved)task_2will be re-executed from the beginningtask_3will execute aftertask_2completes successfully