Something went wrong. Try again.
A social knowledge tool for research trails, built on ATProto semble.so
research-tool social-network tools-for-thought atproto
Something went wrong. Try again.
889 B · 33 lines
TypeScript
at development
12345678910111213141516171819202122232425262728293031323334export 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;