Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥
TypeScript aiai-agentsai-crawlerai-scrapingai-searchcrawlerdata-extractionhtml-to-markdownllmmarkdownscraperscrapingweb-crawlerweb-dataweb-data-extractionweb-scraperweb-scrapingweb-searchwebscraping
fix(auth/redlock): retry cached ACUC lock for 20 seconds
Gergő Móricz2c96d2eef666
diff --git a/apps/api/src/controllers/auth.ts b/apps/api/src/controllers/auth.tsindex 2298430e7..73cb3d2af 100644--- a/apps/api/src/controllers/auth.ts+++ b/apps/api/src/controllers/auth.ts@@ -43,7 +43,10 @@ export async function setCachedACUC(api_key: string, acuc: AuthCreditUsageChunkconst lockTTL = 10000; // 10 secondstry {- const lock = await redlock.acquire([redLockKey], lockTTL);+ const lock = await redlock.acquire([redLockKey], lockTTL, {+ retryCount: 200,+ retryDelay: 100,+ });try {if (typeof acuc === "function") {