process camapign emails in queue (#104)
* process camapign emails in queue * remove validity * add bulk queue * fix typo
This commit is contained in:
9
apps/web/src/server/queue/queue-constants.ts
Normal file
9
apps/web/src/server/queue/queue-constants.ts
Normal 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
|
||||
},
|
||||
};
|
Reference in New Issue
Block a user