Interface SupaworkerJob<Payload>

A job in the Supaworker system.

interface SupaworkerJob<Payload> {
    attempts: number;
    created_at: string;
    enabled: boolean;
    id: number;
    options: null | SupaworkerJobOptions;
    payload: null | Payload;
    queue: string;
}

Type Parameters

  • Payload

Properties

attempts: number

The number of times the job has been attempted.

created_at: string

The time the job was created.

enabled: boolean

Disabled jobs will not be processed.

id: number

Auto-incrementing ID.

options: null | SupaworkerJobOptions

Supaworker JSON options for this job.

payload: null | Payload

JSON payload for this job.

queue: string

The name of the queue this job belongs to.