Interface SandboxedJob<T, R>

interface SandboxedJob<T, R> {
    attemptsMade: number;
    data: T;
    failedReason: string;
    finishedOn?: number;
    id: string;
    log: ((row) => void);
    name: string;
    opts: JobsOptions;
    parent?: ParentKeys;
    parentKey?: string;
    processedOn?: number;
    repeatJobKey?: string;
    returnValue: R;
    returnvalue: string;
    stacktrace: string;
    timestamp: number;
    update: ((data) => Promise<void>);
    updateProgress: ((value) => Promise<void>);
}

Type Parameters

  • T = any
  • R = any

Hierarchy

  • Omit<JobJson, "data" | "opts" | "progress" | "returnValue">
    • SandboxedJob

Properties

attemptsMade: number
data: T
failedReason: string
finishedOn?: number
id: string
log: ((row) => void)

Type declaration

    • (row): void
    • Parameters

      • row: any

      Returns void

name: string
parent?: ParentKeys
parentKey?: string
processedOn?: number
repeatJobKey?: string
returnValue: R
returnvalue: string
stacktrace: string
timestamp: number
update: ((data) => Promise<void>)

Type declaration

    • (data): Promise<void>
    • Parameters

      • data: any

      Returns Promise<void>

updateProgress: ((value) => Promise<void>)

Type declaration

    • (value): Promise<void>
    • Parameters

      • value: number | object

      Returns Promise<void>

Generated using TypeDoc