fix: ensure that shutdown works in loaderOnly mode (#6893)

This commit is contained in:
Sebastian Rindom authored and GitHub committed 2024-04-01 13:56:42 +00:00
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()
},