Interface SandboxedJobPro<T, R>

A job that is being processed in a sandbox.

Type Parameters

  • T = any

  • R = any

Hierarchy

  • Omit<SandboxedJob, "data" | "opts" | "returnValue">
    • SandboxedJobPro

Properties

attemptsMade: number
data: T
failedReason: string
finishedOn?: number
gid?: string

The group id of the job.

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
processedOn?: number
progress: number | object
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