X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fpools%2Fcluster%2Ffixed.ts;h=c7c95c4b3dad537b39dfd44d37481178035fcb4c;hb=233339f4de21ce5e584d37e18121d676cd3af0bd;hp=b5b32527cf595b8b4ec8f52f3290a10e4647cbd4;hpb=8ebe6c308dc1fc3202980126da043b2855d24780;p=poolifier.git diff --git a/src/pools/cluster/fixed.ts b/src/pools/cluster/fixed.ts index b5b32527..c7c95c4b 100644 --- a/src/pools/cluster/fixed.ts +++ b/src/pools/cluster/fixed.ts @@ -72,7 +72,7 @@ export class FixedClusterPool< worker.on('disconnect', () => { worker.kill() }) - this.sendToWorker(workerNodeKey, { kill: true, workerId: worker.id }) + await this.sendKillMessageToWorker(workerNodeKey, worker.id) worker.disconnect() await waitWorkerExit } @@ -116,16 +116,6 @@ export class FixedClusterPool< return WorkerTypes.cluster } - /** @inheritDoc */ - protected get minSize (): number { - return this.numberOfWorkers - } - - /** @inheritDoc */ - protected get maxSize (): number { - return this.numberOfWorkers - } - /** @inheritDoc */ protected get busy (): boolean { return this.internalBusy()