ready: this.ready,
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
strategy: this.opts.workerChoiceStrategy!,
+ strategyRetries: this.workerChoiceStrategyContext?.retriesCount ?? 0,
minSize: this.minimumNumberOfWorkers,
maxSize: this.maximumNumberOfWorkers ?? this.minimumNumberOfWorkers,
...(this.workerChoiceStrategyContext?.getTaskStatisticsRequirements()
* The pool emptiness boolean status.
*/
protected get empty (): boolean {
- if (this.minimumNumberOfWorkers === 0 && this.workerNodes.length === 0) {
- return true
- }
- return false
+ return this.minimumNumberOfWorkers === 0 && this.workerNodes.length === 0
}
/**