method QueueAdapter.nack
QueueAdapter.nack(
queue: string,
id: string,
options?: NackOptions
): Promise<void>

Indicate that a message processing failed.

Parameters

queue: string

Name of the queue.

id: string

Unique ID of the message.

optional
options: NackOptions

How to handle the failed message (requeue, delay, dead-letter).

Return Type

Promise<void>

Usage

import { type QueueAdapter } from ".";