method RedisAdapter.prototype.routeToDlq
RedisAdapter.prototype.routeToDlq(
sourceQueue: string,
id: string,
dlqName: string,
): Promise<void>

Routes a message to the dead letter queue when attempt > maxAttempts. Mirrors in-memory adapter: messages DLQ'd after exceeding maxAttempts.

Parameters

sourceQueue: string
id: string
dlqName: string

Return Type

Promise<void>

Usage

import { RedisAdapter } from ".";