Skip to main content
Module

x/kvmq/mod.ts>JobOptions

Library inspired by BullMQ for Deno
Latest
interface JobOptions
implements Partial<Omit<JobData<unknown>, "state" | "lockUntil">>
import { type JobOptions } from "https://deno.land/x/kvmq@v0.3.0/mod.ts";

Options for initializing a Job.

Properties

optional
priority: number

Optional priority value. Can be any number. Default is 0.

Jobs are sorted by priority and then by creation date, ascending. Priority is negated and saved as part of the Job.id.