Lower force shutdown time to 60s

This commit is contained in:
Christoph Wiechert
2018-12-14 15:49:52 +01:00
parent 0b33927ffb
commit 3688ce6c2b

4
app.js
View File

@@ -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);