chore: add loger for the telegram sender

This commit is contained in:
mahyargdz
2025-03-28 16:10:12 +03:30
parent cb9860853e
commit 0b62341908
13 changed files with 200 additions and 85 deletions
+3 -4
View File
@@ -9,10 +9,9 @@ export function bullMqConfig(): SharedBullAsyncConfiguration {
url: configService.getOrThrow<string>("REDIS_URI"),
},
defaultJobOptions: {
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
removeOnComplete: false,
removeOnFail: false,
attempts: 5, // Reasonable default, adjust based on job criticality
},
}),
};