method MemoryQueue.prototype.getDeadLetters
Since 0.1.0
MemoryQueue.prototype.getDeadLetters<T>(name: string): readonly StoredJob<T>[]

Returns the jobs dead-lettered under a queue name, in the order they were dead-lettered. A job lands here once it fails on its final attempt; the queue never delivers it again.

This is MemoryQueue-only observability: the Redis transport keeps its dead set in Redis, so inspect it there.

Type Parameters

The job payload type

Parameters

name: string

Job name

Return Type

readonly StoredJob<T>[]

The dead-lettered jobs for that name

Throws

Error

If the adapter is not connected

Usage

import { MemoryQueue } from "queue-plugin/src/index.ts";