Interface WorkerInfoInternal

Worker information.

interface WorkerInfo {
    backPressure: boolean;
    backPressureStealing: boolean;
    continuousStealing: boolean;
    dynamic: boolean;
    id: undefined | number;
    ready: boolean;
    stealing: boolean;
    stolen: boolean;
    taskFunctionsProperties?: TaskFunctionProperties[];
    type: "cluster" | "thread";
}

Properties

backPressure: boolean

Back pressure flag. This flag is set to true when worker node tasks queue is back pressured.

backPressureStealing: boolean

Back pressure stealing flag. This flag is set to true when worker node is stealing one task from another back pressured worker node.

continuousStealing: boolean

Continuous stealing flag. This flag is set to true when worker node is continuously stealing tasks from other worker nodes.

dynamic: boolean

Dynamic flag.

id: undefined | number

Worker id.

ready: boolean

Ready flag.

stealing: boolean

Stealing flag. This flag is set to true when worker node is stealing one task from another worker node.

stolen: boolean

Stolen flag. This flag is set to true when worker node has one task stolen from another worker node.

taskFunctionsProperties?: TaskFunctionProperties[]

Task functions properties.

type: "cluster" | "thread"

Worker type.