mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Remove server.close call
This commit is contained in:
parent
9e6b749604
commit
fd81f65e53
1 changed files with 3 additions and 8 deletions
|
|
@ -105,14 +105,9 @@ const main = async () => {
|
|||
|
||||
const gracefulShutdown = async (signal: string) => {
|
||||
console.log(`[queue-processor]: Received ${signal}, closing server...`)
|
||||
server.close(async () => {
|
||||
console.log(
|
||||
'[queue-processor]: Server closed. shuting down and exiting process...'
|
||||
)
|
||||
await worker.close()
|
||||
await redisDataSource.shutdown()
|
||||
process.exit(0)
|
||||
})
|
||||
await worker.close()
|
||||
await redisDataSource.shutdown()
|
||||
process.exit(0)
|
||||
}
|
||||
|
||||
process.on('SIGINT', () => gracefulShutdown('SIGINT'))
|
||||
|
|
|
|||
Loading…
Reference in a new issue