Interface SandboxedJob<T, R>

interface SandboxedJob<T, R> {
    attemptsMade: number;
    attemptsStarted: number;
    data: T;
    debounceId?: string;
    deduplicationId?: string;
    failedReason: string;
    finishedOn?: number;
    id: string;
    log: ((row) => void);
    moveToDelayed: ((timestamp, token?) => Promise<void>);
    name: string;
    opts: JobsOptions;
    parent?: ParentKeys;
    parentKey?: string;
    prefix: string;
    processedBy?: string;
    processedOn?: number;
    progress: number | object;
    queueName: string;
    repeatJobKey?: string;
    returnValue: R;
    returnvalue: string;
    stacktrace: string;
    timestamp: number;
    updateData: ((data) => Promise<void>);
    updateProgress: ((value) => Promise<void>);
}

Type Parameters

  • T = any
  • R = any

Hierarchy

Properties

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

Type declaration

    • (row): void
    • Parameters

      • row: any

      Returns void

moveToDelayed: ((timestamp, token?) => Promise<void>)

Type declaration

    • (timestamp, token?): Promise<void>
    • Parameters

      • timestamp: number
      • Optional token: string

      Returns Promise<void>

name: string
parent?: ParentKeys
parentKey?: string
prefix: string
processedBy?: string
processedOn?: number
progress: number | object
queueName: string
repeatJobKey?: string
returnValue: R
returnvalue: string
stacktrace: string
timestamp: number
updateData: ((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