Increase payment job attempts and backoff delay

This commit is contained in:
Jose Eduardo 2025-08-17 04:30:26 -04:00
parent ac1dcc2a6b
commit 7d1d01310a

View File

@ -11,10 +11,10 @@ export class QueueService {
async addPaymentJob(data: CreatePaymentDto): Promise<void> { async addPaymentJob(data: CreatePaymentDto): Promise<void> {
await this.paymentQueue.add(PAYMENT_QUEUE, data, { await this.paymentQueue.add(PAYMENT_QUEUE, data, {
jobId: data.correlationId, jobId: data.correlationId,
attempts: 5, attempts: 60,
backoff: { backoff: {
type: 'exponential', type: 'exponential',
delay: 2000, delay: 3000,
}, },
removeOnComplete: 100, removeOnComplete: 100,
removeOnFail: 50, removeOnFail: 50,