diff options
Diffstat (limited to 'server.ts')
-rw-r--r-- | server.ts | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -352,6 +352,7 @@ async function startApplication () { | |||
352 | 352 | ||
353 | process.on('exit', () => { | 353 | process.on('exit', () => { |
354 | JobQueue.Instance.terminate() | 354 | JobQueue.Instance.terminate() |
355 | .catch(err => logger.error('Cannot terminate job queue.', { err })) | ||
355 | }) | 356 | }) |
356 | 357 | ||
357 | process.on('SIGINT', () => process.exit(0)) | 358 | process.on('SIGINT', () => process.exit(0)) |