Interface TasksQueueOptions

Worker node tasks queue options.

interface TasksQueueOptions {
    concurrency?: number;
    size?: number;
    taskStealing?: boolean;
    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
tasksStealingOnBackPressure?: boolean

Whether to enable tasks stealing under back pressure.

Default Value

true

Generated using TypeDoc