Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

Update batch_billing.ts

Nicolas1de5a2c589cc
diff --git a/apps/api/src/services/billing/batch_billing.ts b/apps/api/src/services/billing/batch_billing.ts
index caa2c0e0c..8acf3aef3 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 {