Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ExecutionManager

Execution Manager is a interface to define each queued task

Hierarchy

Index

Properties

blockExecution

blockExecution: boolean

Guarantee a isolated execution for a task

createdAt

createdAt: Dayjs

When created

delay

delay: number

Delay to start this task. Default comes from: process.env.UNIQUE_POOLING or 1 secs.

done

done: boolean

executed (yes or no)

failed

failed: { func?: UniqueExecutionCallback; message?: undefined | string; status: boolean }

Execution failed, because result a throw

Type declaration

  • Optional func?: UniqueExecutionCallback

    onFail Callback

  • Optional message?: undefined | string

    message

  • status: boolean

    failed? true or false

func

Callback async function

name

name: string

task name

priority

priority: number

Priority to dequeue tasks. Major number is less important. Maximum priority is 0

Optional whenExecuted

whenExecuted: dayjs.Dayjs

When executed

Generated using TypeDoc