OpenPanel is an open-source web and product analytics platform, an open-source alternative to Mixpanel with optional self-hosting.
fix(worker): try speed up
Carl-Gerhard Lindesvärda1278ca371ac
diff --git a/apps/worker/src/jobs/events.incoming-event.ts b/apps/worker/src/jobs/events.incoming-event.tsindex 0ec1c515a..67aabeb17 100644--- a/apps/worker/src/jobs/events.incoming-event.ts+++ b/apps/worker/src/jobs/events.incoming-event.ts@@ -191,7 +191,7 @@ function getSessionEndWithPriority(return async (args) => {const res = await getSessionEnd(args);- if (count > 10) {+ if (count > 3) {throw new Error('Failed to get session end');}@@ -216,7 +216,7 @@ async function getSessionEnd({previousDeviceId: string;}) {const currentSessionEndKeys = await getRedisQueue().keys(- `*:sessionEnd:${projectId}:${currentDeviceId}:*`,+ `bull:sessions:sessionEnd:${projectId}:${currentDeviceId}:*`,);const sessionEndJobCurrentDeviceId = await findJobByPrefix(@@ -229,7 +229,7 @@ async function getSessionEnd({}const previousSessionEndKeys = await getRedisQueue().keys(- `*:sessionEnd:${projectId}:${previousDeviceId}:*`,+ `bull:sessions:sessionEnd:${projectId}:${previousDeviceId}:*`,);const sessionEndJobPreviousDeviceId = await findJobByPrefix(