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 strategy context constructor.
The pool instance.
The worker choice strategy.
The worker choice strategy options.
Private
optsThe worker choice strategy options.
Private
retriesThe number of times the worker choice strategy in the context has been retried.
Private
Readonly
workerPrivate
workerThe worker choice strategy.
Executes the worker choice strategy in the context algorithm.
The key of the worker node.
https://nodejs.org/api/errors.html#class-error If after configured retries the worker node key is null or undefined .
Gets the strategy policy in the context.
The strategy policy.
Gets the worker choice strategy in the context task statistics requirements.
The task statistics requirements.
Sets the worker choice strategies in the context options.
The worker choice strategy options.
Sets the worker choice strategy to use in the context.
The worker choice strategy to set.
Generated using TypeDoc
The worker choice strategy context.