wip: docker

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-01-14 07:39:02 +01:00
parent 1b10371940
commit 719a82f1c4
68 changed files with 3105 additions and 328 deletions

View File

@@ -0,0 +1,17 @@
import { Queue } from 'bullmq';
import type { BatchPayload } from '@mixan/types';
import { connection } from './connection';
export interface EventsQueuePayload {
projectId: string;
payload: BatchPayload[];
}
export const eventsQueue = new Queue<EventsQueuePayload>('events', {
connection,
defaultJobOptions: {
removeOnComplete: 10,
},
});