import { type JobEntry } from "https://deno.land/x/kvmq@v0.3.0/mod.ts";
Data and metadata about a job, with additional computed properties.
Used as a result of listing jobs in a queue.
Properties
Position of this job in the queue.
0 means that the job is currently being processed by a worker. Numbers 1 and above mean that the job is waiting to be processed.
Current state of this job.
Computed based on JobData.lockUntil and JobData.delayUntil.
waiting
- the job is waiting to be processedprocessing
- the job is locked, which means it's being processed by a worker.delayed
- the job is waiting for it's JobData.delayUntil to expire.