Interface WorkerInfoInternal

Worker information.

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

Properties

backPressure: boolean

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

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 tasks from another worker node.

taskFunctionsProperties?: TaskFunctionProperties[]

Task functions properties.

type: "thread" | "cluster"

Worker type.