Skip to content

Commit

Permalink
fix(core): Stop explicit redis client disconnect on shutdown (#10551)
Browse files Browse the repository at this point in the history
  • Loading branch information
netroy authored and despairblue committed Aug 26, 2024
1 parent bc043ed commit 7b33c94
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions packages/cli/src/services/redis/redis-client.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import ioRedis from 'ioredis';
import type { Cluster, RedisOptions } from 'ioredis';
import type { RedisClientType } from './redis.types';

import { OnShutdown } from '@/decorators/OnShutdown';
import { LOWEST_SHUTDOWN_PRIORITY } from '@/constants';
import { GlobalConfig } from '@n8n/config';

@Service()
Expand All @@ -28,13 +26,6 @@ export class RedisClientService {
return client;
}

@OnShutdown(LOWEST_SHUTDOWN_PRIORITY)
disconnectClients() {
for (const client of this.clients) {
client.disconnect();
}
}

/**
* Ensure prefix is wrapped in curly braces for Redis cluster.
* See: https://github.com/OptimalBits/bull/blob/develop/PATTERNS.md
Expand Down

0 comments on commit 7b33c94

Please sign in to comment.