Internal
Type of worker.
Type of data sent to the worker. This can only be structured-cloneable data.
Type of execution response. This can only be structured-cloneable data.
Worker choice strategies context constructor.
The pool instance.
The worker choice strategies.
Optional
opts: WorkerChoiceStrategyOptionsThe worker choice strategy options.
Executes the given worker choice strategy in the context algorithm.
The worker choice strategy algorithm to execute.
The key of the worker node.
https://nodejs.org/api/errors.html#class-error If after computed retries the worker node key is null or undefined.
Gets the active worker choice strategies in the context policy.
The strategies policy.
Gets the active worker choice strategies in the context task statistics requirements.
The strategies task statistics requirements.
Sets the default worker choice strategy to use in the context.
The default worker choice strategy to set.
Optional
opts: WorkerChoiceStrategyOptionsThe worker choice strategy options.
Sets the active worker choice strategies in the context options.
The worker choice strategy options.
Synchronizes the active worker choice strategies in the context with the given worker choice strategies.
The worker choice strategies to synchronize.
Optional
opts: WorkerChoiceStrategyOptionsThe worker choice strategy options.
The worker choice strategies context.