MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / getRedisGroupQueue

Function getRedisGroupQueue

packages/redis/redis.ts:114–126  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

112
113let redisGroupQueue: ExtendedRedis;
114export function getRedisGroupQueue() {
115 if (!redisGroupQueue) {
116 // Dedicated Redis connection for GroupWorker to avoid blocking BullMQ
117 redisGroupQueue = createRedisClient('redis-group-queue', REDIS_URL, {
118 ...options,
119 enableReadyCheck: false,
120 maxRetriesPerRequest: null,
121 enableOfflineQueue: true,
122 });
123 }
124
125 return redisGroupQueue;
126}
127
128export async function getLock(key: string, value: string, timeout: number) {
129 const lock = await getRedisCache().set(key, value, 'PX', timeout, 'NX');

Callers 1

queues.tsFile · 0.90

Calls 1

createRedisClientFunction · 0.85

Tested by

no test coverage detected