From 1de5a2c589ccf7fe0dfeea652f7e823b2caf4499 Mon Sep 17 00:00:00 2001 From: Nicolas Date: Thu, 6 Mar 2025 16:57:23 -0300 Subject: [PATCH] Update batch_billing.ts --- apps/api/src/services/billing/batch_billing.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/api/src/services/billing/batch_billing.ts b/apps/api/src/services/billing/batch_billing.ts index caa2c0e0..8acf3aef 100644 --- a/apps/api/src/services/billing/batch_billing.ts +++ b/apps/api/src/services/billing/batch_billing.ts @@ -10,8 +10,8 @@ import { getACUC, setCachedACUC } from "../../controllers/auth"; const BATCH_KEY = "billing_batch"; const BATCH_LOCK_KEY = "billing_batch_lock"; const BATCH_SIZE = 50; // Batch size for processing -const BATCH_TIMEOUT = 15000; // 15 seconds processing interval -const LOCK_TIMEOUT = 30000; // 30 seconds lock timeout +const BATCH_TIMEOUT = 30000; // 15 seconds processing interval +const LOCK_TIMEOUT = 60000; // 30 seconds lock timeout // Define interfaces for billing operations interface BillingOperation {