method MemoryQueue.prototype.requeue
Since 0.1.0
MemoryQueue.prototype.requeue<T>(
name: string,
id: string,
availableAtMs: number,
attempts: number,
_claimToken?: string
): Promise<void>

Requeues a job with a new available timestamp.

Type Parameters

Parameters

name: string

Job name

id: string

Job ID (stable public identity)

availableAtMs: number

When the job becomes available again

attempts: number

Updated attempt count

optional
_claimToken: string

Return Type

Promise<void>

Resolves when requeued

Throws

Error

If the adapter is not connected

Usage

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