From 5c6b6bdf15f9f0d4d8d8e125f2f1d7aa57a8b9d2 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Fri, 20 Sep 2019 16:29:33 +0200 Subject: [PATCH] 1 min to exit --- server.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server.js b/server.js index 483ceb216..d007d0daa 100644 --- a/server.js +++ b/server.js @@ -108,8 +108,8 @@ process.on('message', message => { There are some process that might no be able to end grafully, for example the ones schedulle to process information in a future day or month. In order to be sure that the process will be terminated, we schedulle one forced exit in 2 minutes from now. */ - console.log('[INFO] Task Server -> server -> process.on -> Executing order received from Task Manager to Stop this Task. Nodejs process will be exited in less than 2 minutes.') - setTimeout(global.EXIT_NODE_PROCESS, 120000); + console.log('[INFO] Task Server -> server -> process.on -> Executing order received from Task Manager to Stop this Task. Nodejs process will be exited in less than 1 minutes.') + setTimeout(global.EXIT_NODE_PROCESS, 60000); } });