mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-26 18:42:49 +00:00
Update payment-sync.service.ts
This commit is contained in:
@@ -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
|
// whose payment intent has moved to SUCCEEDED on the gateway but whose
|
||||||
// confirmation event was never delivered (missed RabbitMQ message, network
|
// confirmation event was never delivered (missed RabbitMQ message, network
|
||||||
// blip, etc.). finalizePaymentSuccess() is fully idempotent so re-running
|
// 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
|
// Processes at most 50 bookings per cycle to avoid hammering the payment
|
||||||
// service; the next tick picks up the remainder.
|
// service; the next tick picks up the remainder.
|
||||||
// ─────────────────────────────────────────────────────────────────────────
|
// ─────────────────────────────────────────────────────────────────────────
|
||||||
@Cron('*/1 * * * *')
|
@Cron('*/30 * * * *')
|
||||||
async syncPaymentStatuses() {
|
async syncPaymentStatuses() {
|
||||||
const BATCH_SIZE = 50;
|
const BATCH_SIZE = 50;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user