refactor: reduce graceful shutdown timeout from 5 to 3 seconds

This commit is contained in:
Tudor Stanciu 2025-10-04 03:25:32 +03:00
parent 1d6eb6e5a6
commit 900f5ad238

View File

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