update: invoice processor and fix bug
This commit is contained in:
@@ -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
|
||||
},
|
||||
}),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user