feat: backfill profile id on events

This commit is contained in:
Carl-Gerhard Lindesvärd
2026-02-18 17:42:17 +01:00
parent 7e2d93db45
commit ee27568824
7 changed files with 160 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
import type { Job } from 'bullmq';
import { eventBuffer, profileBuffer, sessionBuffer } from '@openpanel/db';
import { eventBuffer, profileBackfillBuffer, profileBuffer, sessionBuffer } from '@openpanel/db';
import type { CronQueuePayload } from '@openpanel/queue';
import { jobdeleteProjects } from './cron.delete-projects';
@@ -23,6 +23,9 @@ export async function cronJob(job: Job<CronQueuePayload>) {
case 'flushSessions': {
return await sessionBuffer.tryFlush();
}
case 'flushProfileBackfill': {
return await profileBackfillBuffer.tryFlush();
}
case 'ping': {
return await ping();
}