* Worker choice strategy options.
*/
export interface WorkerChoiceStrategyOptions {
- /**
- * Number of worker choice retries to perform if no worker is eligible.
- *
- * @defaultValue 6
- */
- readonly retries?: number
/**
* Measurement to use in worker choice strategy supporting it.
*/
*
* @defaultValue Weights computed automatically given the CPU performance.
*/
- readonly weights?: Record<number, number>
+ weights?: Record<number, number>
}
/**
*
* @param opts - The worker choice strategy options.
*/
- readonly setOptions: (opts: WorkerChoiceStrategyOptions) => void
- /**
- * Whether the pool has worker nodes ready or not.
- *
- * @returns Whether the pool has worker nodes ready or not.
- */
- readonly hasPoolWorkerNodesReady: () => boolean
+ readonly setOptions: (opts: WorkerChoiceStrategyOptions | undefined) => void
}