-import { PoolType } from '../pool'
-import type { ClusterPoolOptions } from './fixed'
-import { FixedClusterPool } from './fixed'
+import { type PoolType, PoolTypes } from '../pool'
+import { type ClusterPoolOptions, FixedClusterPool } from './fixed'
/**
* A cluster pool with a dynamic number of workers, but a guaranteed minimum number of workers.
/** @inheritDoc */
public get type (): PoolType {
- return PoolType.DYNAMIC
+ return PoolTypes.dynamic
+ }
+
+ /** @inheritDoc */
+ protected get maxSize (): number {
+ return this.max
}
/** @inheritDoc */
protected get full (): boolean {
- return this.workerNodes.length === this.max
+ return this.workerNodes.length >= this.max
}
/** @inheritDoc */