Skip to main content
Module

x/kvmq/mod.ts>WorkerOptions

Library inspired by BullMQ for Deno
Latest
interface WorkerOptions
import { type WorkerOptions } from "https://deno.land/x/kvmq@v0.3.0/mod.ts";

Options for initializing a Worker.

Properties

optional
concurrency: number

Maximum number of jobs to process at the same time.

Set this to 0 to pause the worker.

Default is 1.

optional
lockDurationMs: number

Time of no activity in milliseconds after which the job lock will be released.

Default is 5 seconds.

optional
lockIntervalMs: number

Interval in milliseconds on which to acquire the processed job lock automatically.

Default is 2 seconds.

optional
pollIntervalMs: number

Interval in milliseconds on which to check for jobs to process while idle.

Default is 3 seconds.