fix: ensure that shutdown works in loaderOnly mode (#6893)
This commit is contained in:
1 parent
68aa0971a2
commit
2e914a5fc5
2 files changed
+13
-11
No files matched your search
@@ -62,7 +62,7 @@ export default class RedisEventBusService extends AbstractEventBusModuleService
|
||||
|
||||
__hooks = {
|
||||
onApplicationShutdown: async () => {
|
||||
await this.bullWorker_.close(true)
|
||||
await this.bullWorker_?.close(true)
|
||||
await this.queue_.close()
|
||||
this.eventBusRedisConnection_.disconnect()
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user