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 {