diff --git a/apps/edr-passenger-api/src/modules/payments/payment-sync.service.ts b/apps/edr-passenger-api/src/modules/payments/payment-sync.service.ts index 292c09416..564d70a22 100644 --- a/apps/edr-passenger-api/src/modules/payments/payment-sync.service.ts +++ b/apps/edr-passenger-api/src/modules/payments/payment-sync.service.ts @@ -18,7 +18,7 @@ export class PaymentSyncService { ) {} // ───────────────────────────────────────────────────────────────────────── - // Every 1 min: poll the payment service for any PENDING_PAYMENT bookings + // Every 30 min: poll the payment service for any PENDING_PAYMENT bookings // whose payment intent has moved to SUCCEEDED on the gateway but whose // confirmation event was never delivered (missed RabbitMQ message, network // blip, etc.). finalizePaymentSuccess() is fully idempotent so re-running @@ -27,7 +27,7 @@ export class PaymentSyncService { // Processes at most 50 bookings per cycle to avoid hammering the payment // service; the next tick picks up the remainder. // ───────────────────────────────────────────────────────────────────────── - @Cron('*/1 * * * *') + @Cron('*/30 * * * *') async syncPaymentStatuses() { const BATCH_SIZE = 50;