Update batch_billing.ts

This commit is contained in:
Nicolas 2025-03-06 16:57:23 -03:00
parent eba28a4210
commit 1de5a2c589

View File

@ -10,8 +10,8 @@ import { getACUC, setCachedACUC } from "../../controllers/auth";
const BATCH_KEY = "billing_batch"; const BATCH_KEY = "billing_batch";
const BATCH_LOCK_KEY = "billing_batch_lock"; const BATCH_LOCK_KEY = "billing_batch_lock";
const BATCH_SIZE = 50; // Batch size for processing const BATCH_SIZE = 50; // Batch size for processing
const BATCH_TIMEOUT = 15000; // 15 seconds processing interval const BATCH_TIMEOUT = 30000; // 15 seconds processing interval
const LOCK_TIMEOUT = 30000; // 30 seconds lock timeout const LOCK_TIMEOUT = 60000; // 30 seconds lock timeout
// Define interfaces for billing operations // Define interfaces for billing operations
interface BillingOperation { interface BillingOperation {