fix(core): Handle Redis disconnects gracefully (#11007)

This commit is contained in:
Iván Ovejero
2024-09-30 16:36:27 +02:00
committed by GitHub
parent 805a1140c9
commit cd916480c2
5 changed files with 121 additions and 46 deletions

View File

@@ -27,8 +27,6 @@ export class Subscriber {
this.client = this.redisClientService.createClient({ type: 'subscriber(n8n)' });
this.client.on('error', (error) => this.logger.error(error.message));
this.client.on('message', (channel: PubSub.Channel, message) => {
this.handlers.get(channel)?.(message);
});