super(min, filePath, opts, max)
checkDynamicPoolSize(
this.minimumNumberOfWorkers,
- this.maximumNumberOfWorkers as number
+ this.maximumNumberOfWorkers
)
}
/** @inheritDoc */
protected shallCreateDynamicWorker (): boolean {
- return !this.full && this.internalBusy()
+ return (
+ (!this.full && this.internalBusy()) ||
+ (this.minimumNumberOfWorkers === 0 && this.workerNodes.length === 0)
+ )
}
/** @inheritDoc */