Skip to main content
The dlq.resume method resumes one or more workflow runs from the Dead Letter Queue (DLQ) at the point where they previously failed. This allows you to continue execution from the failed step instead of restarting the workflow from the beginning.

Arguments

You can resume DLQ entries by ID or by filters.

By DLQ ID

dlqId
string|string[]
The DLQ entry ID or list of IDs to resume. Use the dlqId field from messages returned by client.dlq.list().
flowControl
object
An optional flow control configuration to limit concurrency and execution rate of resumed workflow runs.See Flow Control for details.
retries
number
Number of retry attempts to apply when resuming the workflow run. Defaults to 3 if not provided.

By filters

Instead of passing dlqId, you can pass a filter object:
workflowRunId
string
Filter by workflow run ID.
workflowUrl
string
Filter by exact workflow URL.
fromDate
Date | number | string
Resume workflows created after this date.
toDate
Date | number | string
Resume workflows created before this date.
label
string
Resume workflows with this label.
all
boolean
Resume all DLQ entries.

Response

client.dlq.resume() returns one or more objects with details of the resumed workflow run(s):
workflowRuns
object[]

Usage

const { messages } = await client.dlq.list();

const response = await client.dlq.resume({
  dlqId: messages[0].dlqId, // Use the dlqId from the message
  flowControl: {
    key: "my-flow-control-key",
    value: "my-flow-control-value",
  },
  retries: 3,
});