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> {
await this.paymentQueue.add(PAYMENT_QUEUE, data, {
jobId: data.correlationId,
attempts: 5,
attempts: 60,
backoff: {
type: 'exponential',
delay: 2000,
delay: 3000,
},
removeOnComplete: 100,
removeOnFail: 50,