refactored monorepo for more projects

This commit is contained in:
Boki 2025-06-22 23:48:01 -04:00
parent 4632c174dc
commit 9492f1b15e
180 changed files with 1438 additions and 424 deletions

View file

@ -56,19 +56,12 @@ export function registerApplicationServices(
db: config.redis.db,
},
defaultQueueOptions: {
workers: 1,
concurrency: 1,
defaultJobOptions: {
removeOnComplete: 100,
removeOnFail: 50,
attempts: 3,
backoff: {
type: 'exponential',
delay: 1000,
},
},
workers: config.queue!.workers || 1,
concurrency: config.queue!.concurrency || 1,
defaultJobOptions: config.queue!.defaultJobOptions,
},
enableScheduledJobs: true,
enableScheduledJobs: config.queue!.enableScheduledJobs ?? true,
delayWorkerStart: config.queue!.delayWorkerStart ?? false,
};
return new QueueManager(queueConfig, logger);
}).singleton(),