From 3688ce6c2b6b5b35df05befb4e29e28919f7c865 Mon Sep 17 00:00:00 2001 From: Christoph Wiechert Date: Fri, 14 Dec 2018 15:49:52 +0100 Subject: [PATCH] Lower force shutdown time to 60s --- app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.js b/app.js index 835f5ca..b48fc17 100644 --- a/app.js +++ b/app.js @@ -50,8 +50,8 @@ function shutdown() { } setTimeout(function() { console.log('Could not close connections in time, forcefully shutting down'); - process.exit(0); - }, 180 * 1000); + process.exit(1); + }, 60 * 1000); } process.on('SIGTERM', shutdown); process.on('SIGINT', shutdown);