import { type IWorkerChoiceStrategy } from "https://deno.land/x/poolifier@v0.3.14/src/mod.ts";
Worker choice strategy interface.
Properties
readonly
strategyPolicy: StrategyPolicyStrategy policy.
readonly
taskStatisticsRequirements: TaskStatisticsRequirementsTasks statistics requirements.
Updates the worker node key strategy internals. This is called after a task has been executed on a worker node.
Chooses a worker node in the pool and returns its key.
If no worker nodes are not eligible, undefined
is returned.
If undefined
is returned, the caller retry.
Removes the worker node key from strategy internals.
readonly
setOptions: (opts: WorkerChoiceStrategyOptions | undefined) => voidSets the worker choice strategy options.