process camapign emails in queue (#104)

* process camapign emails in queue

* remove validity

* add bulk queue

* fix typo
This commit is contained in:
KM Koushik
2025-02-08 21:34:48 +11:00
committed by GitHub
parent de85dde705
commit d497c29eba
4 changed files with 152 additions and 71 deletions

View File

@@ -0,0 +1,9 @@
export const SES_WEBHOOK_QUEUE = "ses-webhook";
export const CAMPAIGN_MAIL_PROCESSING_QUEUE = "campaign-emails-processing";
export const DEFAULT_QUEUE_OPTIONS = {
removeOnComplete: true,
removeOnFail: {
age: 30 * 24 * 3600, // 30 days
},
};