Interface JobObject<Type, Data, CustomHeaders, CustomOptions>

Job object

interface JobObject<
    Type extends string = string,
    Data = any,
    CustomHeaders extends Record<string, any> = AnyHeaders,
    CustomOptions extends Record<string, any> = AnyOptions,
> {
    data: Data;
    jobUserId: string;
    jobUserUUID: string;
    options?: Options<CustomHeaders, CustomOptions>;
    status: Jobs.Status;
    type: Type;
    uuid: string;
}

Type Parameters

  • Type extends string = string
  • Data = any
  • CustomHeaders extends Record<string, any> = AnyHeaders
  • CustomOptions extends Record<string, any> = AnyOptions

Hierarchy (View Summary)

Implemented by

Properties

data: Data

Job payload

jobUserId: string

User job request identifier, defined by the user

jobUserUUID: string

Unique user job request identification, generated by UUID V5 standard and based on jobUserId

Job meta information, used to pass specific information for job processors

status: Jobs.Status

Job status

type: Type

Job type identification, used to identify specific job handlers to be applied

uuid: string

Unique job processing identification