Added a way to stop the execution of child processes

This commit is contained in:
Luis Fernando Molina committed 2019-08-13 11:46:42 +02:00
1 parent beb86ed718
commit 7d9728c250
1 file changed
+3 -1
+3 -1
View File
@@ -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' });