export const QueueNames = { FEEDS: 'feeds', // Future queues can be added here: // NOTIFICATIONS: 'notifications', // ANALYTICS: 'analytics', } as const; export type QueueName = (typeof QueueNames)[keyof typeof QueueNames]; export const QueueOptions = { [QueueNames.FEEDS]: { attempts: 3, backoff: { type: 'exponential' as const, delay: 2000 }, removeOnComplete: 50, removeOnFail: 25, concurrency: 15, }, // Future queue configurations: // [QueueNames.NOTIFICATIONS]: { // attempts: 5, // backoff: { type: 'exponential' as const, delay: 1000 }, // removeOnComplete: 100, // removeOnFail: 50, // concurrency: 5, // }, // [QueueNames.ANALYTICS]: { // attempts: 2, // backoff: { type: 'exponential' as const, delay: 5000 }, // removeOnComplete: 25, // removeOnFail: 10, // concurrency: 20, // }, } as const;