mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 09:09:36 +02:00
[document-updater] trigger graceful shutdown on unhandled error (#31027)
GitOrigin-RevId: dde99528bfbc1d33f392a52fa8eaf5d4e82266b3
This commit is contained in:
@@ -299,6 +299,11 @@ for (const signal of [
|
||||
process.on(signal, shutdownCleanly(signal))
|
||||
}
|
||||
|
||||
process.on('uncaughtException', function (err) {
|
||||
logger.error({ err }, 'uncaught exception')
|
||||
shutdownCleanly('uncaughtException')()
|
||||
})
|
||||
|
||||
function longerTimeout(req, res, next) {
|
||||
res.setTimeout(6 * 60 * 1000)
|
||||
next()
|
||||
|
||||
Reference in New Issue
Block a user