update: invoice processor and fix bug

This commit is contained in:
mahyargdz
2025-03-09 23:16:00 +03:30
parent 0d16a670e4
commit dff944ef90
5 changed files with 44 additions and 19 deletions
+4 -3
View File
@@ -9,9 +9,10 @@ export function bullMqConfig(): SharedBullAsyncConfiguration {
url: configService.getOrThrow<string>("REDIS_URI"),
},
defaultJobOptions: {
removeOnComplete: 1000,
removeOnFail: 5000,
attempts: 3,
removeOnComplete: 2000, // Consider lower values in high-volume production
removeOnFail: 5000, // Consider lower values to reduce Redis memory usage
attempts: 3, // Reasonable default, adjust based on job criticality
backoff: { type: "exponential", delay: 2000 }, // Consider adding for better retry behavior
},
}),
};