interface QueueProcessorDefinition
Since 0.3.0

The declarative form of one IQueue.process() call — the entry an application writes instead of calling process() imperatively after start().

Properties

readonly
name: string

The job name this processor handles (the process() name argument).

Invoked per delivered job, exactly as the imperative process() accepts.

readonly
optional
options: ProcessOptions

Per-name configuration, exactly as the imperative process() accepts.

Usage

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