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

Function getEventsGroupQueueShard

packages/queue/src/queues.ts:218–225  ·  view source on GitHub ↗
(groupId: string)

Source from the content-addressed store, hash-verified

216);
217
218export const getEventsGroupQueueShard = (groupId: string) => {
219 const shard = pickShard(groupId);
220 const queue = eventsGroupQueues[shard];
221 if (!queue) {
222 throw new Error(`Queue not found for group ${groupId}`);
223 }
224 return queue;
225};
226
227export const sessionsQueue = new Queue<SessionsQueuePayload>(
228 getQueueName('sessions'),

Callers 2

handleTrackFunction · 0.90
postEventFunction · 0.90

Calls 1

pickShardFunction · 0.85

Tested by

no test coverage detected