Lower force shutdown time to 60s
This commit is contained in:
4
app.js
4
app.js
@@ -50,8 +50,8 @@ function shutdown() {
|
|||||||
}
|
}
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
console.log('Could not close connections in time, forcefully shutting down');
|
console.log('Could not close connections in time, forcefully shutting down');
|
||||||
process.exit(0);
|
process.exit(1);
|
||||||
}, 180 * 1000);
|
}, 60 * 1000);
|
||||||
}
|
}
|
||||||
process.on('SIGTERM', shutdown);
|
process.on('SIGTERM', shutdown);
|
||||||
process.on('SIGINT', shutdown);
|
process.on('SIGINT', shutdown);
|
||||||
|
|||||||
Reference in New Issue
Block a user