feat: restart worker in case of uncaught error
[poolifier.git] / src / pools / cluster / dynamic.ts
index eb2b996571f665ff14154cf338c387c5dfa28266..67020577d2be51aaedce5fb37015a0e3edddca91 100644 (file)
@@ -46,7 +46,7 @@ export class DynamicClusterPool<
 
   /** @inheritDoc */
   protected get full (): boolean {
-    return this.workerNodes.length === this.max
+    return this.workerNodes.length >= this.max
   }
 
   /** @inheritDoc */