client.dlq
client.dlq.retryFailureFunction
If a workflow's failureFunction or failureUrl request has failed, you can retry it using the retryFailureFunction method:
Arguments
Response
Usage
import { Client } from "@upstash/workflow";const client = new Client({ token: "<QSTASH_TOKEN>" });// Retry the failure callback for a specific DLQ messageconst response = await client.dlq.retryFailureFunction({ dlqId: "dlq-12345" // The ID of the DLQ message to retry});