fix
This commit is contained in:
@@ -144,11 +144,11 @@ const autoBatchSize = Number.parseInt(process.env.AUTO_BATCH_SIZE || '0', 10);
|
|||||||
export const eventsGroupQueues = Array.from({
|
export const eventsGroupQueues = Array.from({
|
||||||
length: EVENTS_GROUP_QUEUES_SHARDS,
|
length: EVENTS_GROUP_QUEUES_SHARDS,
|
||||||
}).map(
|
}).map(
|
||||||
(_, index) =>
|
(_, index, list) =>
|
||||||
new GroupQueue<EventsQueuePayloadIncomingEvent['payload']>({
|
new GroupQueue<EventsQueuePayloadIncomingEvent['payload']>({
|
||||||
logger: queueLogger,
|
logger: queueLogger,
|
||||||
namespace: getQueueName(
|
namespace: getQueueName(
|
||||||
index === 0 ? 'group_events' : `group_events_${index}`,
|
list.length === 1 ? 'group_events' : `group_events_${index}`,
|
||||||
),
|
),
|
||||||
redis: getRedisGroupQueue(),
|
redis: getRedisGroupQueue(),
|
||||||
keepCompleted: 1_000,
|
keepCompleted: 1_000,
|
||||||
|
|||||||
Reference in New Issue
Block a user