From 6f96009b3e4864dcd8771d84d9e826c90018e61c Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sat, 5 Mar 2022 20:58:53 +0100 Subject: [PATCH] src/worker/WorkerConstants.ts: add MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/worker/WorkerConstants.ts | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/worker/WorkerConstants.ts diff --git a/src/worker/WorkerConstants.ts b/src/worker/WorkerConstants.ts new file mode 100644 index 00000000..9a1caf8e --- /dev/null +++ b/src/worker/WorkerConstants.ts @@ -0,0 +1,8 @@ +export default class WorkerConstants { + static readonly DEFAULT_ELEMENT_START_DELAY = 0; + static readonly DEFAULT_WORKER_START_DELAY = 500; + static readonly POOL_MAX_INACTIVE_TIME = 60000; + static readonly DEFAULT_POOL_MIN_SIZE = 4; + static readonly DEFAULT_POOL_MAX_SIZE = 16; + static readonly DEFAULT_ELEMENTS_PER_WORKER = 1; +} -- 2.34.1