/opt/mawid/apps/api/src/whatsapp
Edit: /opt/mawid/apps/api/src/whatsapp/wa-queue.ts (447B)
import { Queue } from 'bullmq';
export const WA_OUTBOUND_QUEUE = Symbol('WA_OUTBOUND_QUEUE');
export const WA_OUTBOUND_QUEUE_NAME = 'wa-outbound';
export interface WaOutboundJob {
messageId: string; // Message.id to deliver
}
export type WaOutboundQueue = Queue
;
export const WA_OUTBOUND_JOB_OPTS = {
attempts: 5,
backoff: { type: 'exponential', delay: 2000 },
removeOnComplete: 1000,
removeOnFail: false,
} as const;