Interface TasksQueueOptions

Worker node tasks queue options.

interface TasksQueueOptions {
    concurrency?: number;
    size?: number;
    taskStealing?: boolean;
    tasksFinishedTimeout?: number;
    tasksStealingOnBackPressure?: boolean;
}

Properties

concurrency?: number

Maximum number of tasks that can be executed concurrently on a worker node.

Default Value

1
size?: number

Maximum tasks queue size per worker node flagging it as back pressured.

Default Value

(pool maximum size)^2
taskStealing?: boolean

Whether to enable task stealing on idle.

Default Value

true
tasksFinishedTimeout?: number

Queued tasks finished timeout in milliseconds at worker node termination.

Default Value

2000
tasksStealingOnBackPressure?: boolean

Whether to enable tasks stealing under back pressure.

Default Value

false