When a workflow run fails, it’s automatically moved to the DLQ (Dead Letter Queue) where it can be analyzed and resumed. The resume feature allows you to continue a failed workflow run from exactly where it failed, without re-executing successfully completed steps.
This is particularly useful for long-running workflows where you don’t want to lose progress from successful steps when a single step fails.
When a workflow is resumed, it continues execution from the last failed step. A new workflow run ID is generated, but the workflow maintains the state and results from previously completed steps.
You can make changes to the workflow code as long as these changes come after the failed steps. However, making changes before the failed step will break the code and is not allowed.
For more details, check out Handle workflow route code changes page.
QStash authentication token
Override the number of retries for the remaining workflow steps.
Override the delay before executing the next workflow step. Format is <value><unit> (e.g., "10s", "5m").
Override the retry delay expression for the remaining workflow steps.
Override the flow control key for the remaining workflow steps.
Override the flow control configuration in the format parallelism=<value>, rate=<value>, period=<value>.
Override the label for the remaining workflow steps.
Override the failure callback URL for the remaining workflow steps.
List of specific DLQ IDs to resume. If provided, other filters are ignored.
Pagination cursor for resuming workflows in batches.
Maximum number of workflows to resume. If not provided, all matching workflows will be resumed.
Filter workflows by starting date, in milliseconds (Unix timestamp). This is inclusive.
Filter workflows by ending date, in milliseconds (Unix timestamp). This is inclusive.
Filter workflows by workflow URL.
Filter workflows by workflow run ID.
Filter workflows by creation timestamp in milliseconds (Unix timestamp).
Filter workflows by label assigned by the user.
Filter workflows by failure function state.
| State | Description |
|---|---|
| CALLBACK_INPROGRESS | The failure function is in progress. |
| CALLBACK_SUCCESS | The failure function run successfully. |
| CALLBACK_FAIL | The failure function failed to run. |
| CALLBACK_CANCELED | The failure function was manually canceled |
Filter workflows by IP address of the publisher.
Filter workflows by Flow Control Key.