From 9c352c94c91b533aa18a5a07e07b5532d78355aa Mon Sep 17 00:00:00 2001 From: MythEclipse Date: Tue, 2 Jun 2026 22:05:47 +0700 Subject: [PATCH] chore: no staged changes --- .../discord-gateway/src/modules/ai-moderation/aiAnalyzer.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/services/discord-gateway/src/modules/ai-moderation/aiAnalyzer.ts b/services/discord-gateway/src/modules/ai-moderation/aiAnalyzer.ts index 2b95fdf..786657f 100644 --- a/services/discord-gateway/src/modules/ai-moderation/aiAnalyzer.ts +++ b/services/discord-gateway/src/modules/ai-moderation/aiAnalyzer.ts @@ -687,11 +687,7 @@ async function processBatch( conversationErrorCooldown.delete(conversationKey); shouldScheduleNext = true; } catch (error) { - consecutiveErrors++; - if (consecutiveErrors >= MAX_CONSECUTIVE_ERRORS) { - globalCooldownUntil = Date.now() + 60000; - logger.warn("Global circuit breaker triggered due to consecutive errors"); - } + recordConversationBatchFailure(conversationKey); // Unhandled exception — route everything to individual fallback. logger.warn(