Interface TaskQueueProps

interface TaskQueueProps {
    concurrency?: number;
    defaultIncrementalTaskId?: boolean;
    logger?: ILogger;
    memorizeTasks?: boolean;
    onTaskStatusUpdate?: TaskStatusUpdateHandler<any>;
    returnError?: boolean;
    stopOnError?: boolean;
    taskPrioritizationMode?: TaskPrioritizationMode;
    verbose?: boolean;
}

Hierarchy

  • TaskQueueBaseProps
    • TaskQueueProps

Properties

concurrency?: number

Maximum concurrency running tasks.

Default

1
defaultIncrementalTaskId?: boolean

Toggle to use default incremental task id.

Default

true
logger?: ILogger

The logger instance.

Default

The default logger
memorizeTasks?: boolean

Toggle to make getTask() and getAllTasks() available to retrieve task details.

Default

false
onTaskStatusUpdate?: TaskStatusUpdateHandler<any>

Listener for task status updates. Please note, only one listener is allowed.

returnError?: boolean

Toggle to return the error during task execution (resolve to the promise).

Default

false
stopOnError?: boolean

Toggle to stop the queue when error happens during task execution.

Default

true
taskPrioritizationMode?: TaskPrioritizationMode

Pending task prioritization mode. It affects how the task queue picks the next task to be executed.

verbose?: boolean

Toggle to log the task queue execution details.

Default

false

Generated using TypeDoc