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.
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.
Removes the worker node key from the active worker choice strategies in the context.
The worker node key.
true
if the removal is successful, false
otherwise.
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.
Updates the worker node key in the active worker choice strategies in the context internals.
The worker node key.
true
if the update is successful, false
otherwise.
The worker choice strategies context.