mirror of
https://dev.azure.com/tstanciu94/PhantomMind/_git/Bitip
synced 2025-10-13 01:52:19 +03:00
refactor: reduce graceful shutdown timeout from 5 to 3 seconds
This commit is contained in:
parent
1d6eb6e5a6
commit
900f5ad238
@ -144,7 +144,7 @@ const gracefulShutdown = async (signal: string): Promise<void> => {
|
||||
setTimeout(() => {
|
||||
logger.error('Forced shutdown after timeout');
|
||||
process.exit(1);
|
||||
}, 5000);
|
||||
}, 3000);
|
||||
};
|
||||
|
||||
process.on('SIGTERM', () => gracefulShutdown('SIGTERM'));
|
||||
|
Loading…
x
Reference in New Issue
Block a user