bump groupmq
This commit is contained in:
@@ -107,6 +107,18 @@ export const eventsQueue = new Queue<EventsQueuePayload>('events', {
|
||||
},
|
||||
});
|
||||
|
||||
const orderingWindowMs = Number.parseInt(
|
||||
process.env.ORDERING_WINDOW_MS || '50',
|
||||
10,
|
||||
);
|
||||
const orderingGracePeriodDecay = Number.parseFloat(
|
||||
process.env.ORDERING_GRACE_PERIOD_DECAY || '0.9',
|
||||
);
|
||||
const orderingMaxWaitMultiplier = Number.parseInt(
|
||||
process.env.ORDERING_MAX_WAIT_MULTIPLIER || '8',
|
||||
10,
|
||||
);
|
||||
|
||||
export const eventsGroupQueue = new GroupQueue<
|
||||
EventsQueuePayloadIncomingEvent['payload']
|
||||
>({
|
||||
@@ -114,7 +126,9 @@ export const eventsGroupQueue = new GroupQueue<
|
||||
namespace: 'group_events',
|
||||
redis: getRedisGroupQueue(),
|
||||
orderingMethod: 'in-memory',
|
||||
orderingWindowMs: 50,
|
||||
orderingWindowMs,
|
||||
orderingGracePeriodDecay,
|
||||
orderingMaxWaitMultiplier,
|
||||
keepCompleted: 10,
|
||||
keepFailed: 10_000,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user