Interface SupaworkerEnqueueJobOptions<Payload>

Options for creating a new Supaworker job.

interface SupaworkerEnqueueJobOptions<Payload> {
    enabled?: boolean;
    options?: null | SupaworkerJobOptions;
    payload?: null | Payload;
    queue: string;
}

Type Parameters

  • Payload

Properties

enabled?: boolean

Disabled jobs will not be processed. Defaults to true.

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.