From 7d9728c250f6957579df8381eb627c0509f71ca4 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Tue, 13 Aug 2019 11:46:42 +0200 Subject: [PATCH] Added a way to stop the execution of child processes --- server.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server.js b/server.js index c723506de..f951ebd68 100644 --- a/server.js +++ b/server.js @@ -54,7 +54,9 @@ function startHtttpServer() { } function startCloneExecutor() { - if (CONSOLE_LOG === true) { console.log('[INFO] server -> startCloneExecutor -> Entering function.') }; + if (CONSOLE_LOG === true) { console.log('[INFO] server -> startCloneExecutor -> Entering function.') }; + + if (process.env.RUN_CLON_EXECUTOR !== "true") {return} let path = process.env.CLONE_EXECUTOR_PATH + '/run.js' cloneExecutorChildProcess = spawn('node', [path], { shell: true, stdio: 'inherit' });