Skip to main content
Module

x/kvmq/mod.ts>JobHandler

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

Function that processes a job.

Receives the job data and a function for updating the job data in the database if necessary.

definition: (
job: Job<State>,
updateJob: (job: Partial<JobData<State>>) => Promise<void>,
) => Promise<void>