From 734c789f5027032d52a427b077b28bd0f662a34f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=B7=E7=94=B5=E8=8A=BD=E8=A1=A3?= Date: Thu, 16 Apr 2026 21:36:43 -0400 Subject: [PATCH] fix(orchestration): remove one-time heartbeat cleanup from scheduler startup --- src/main/orchestration/scheduler.ts | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/main/orchestration/scheduler.ts b/src/main/orchestration/scheduler.ts index 8746df6b..76ff044d 100644 --- a/src/main/orchestration/scheduler.ts +++ b/src/main/orchestration/scheduler.ts @@ -27,19 +27,6 @@ export function createScheduler( function startHeartbeatScheduler() { if (heartbeatTimer) clearInterval(heartbeatTimer); - // One-time cleanup of existing duplicate heartbeat tasks from before the coalescing fix - try { - const activeCompanies = db.listActiveCompanyIds(); - for (const company of activeCompanies) { - const cleaned = db.cleanupDuplicateHeartbeatTasks(company.id); - if (cleaned > 0) { - logger.info(`[heartbeat] Cleaned up ${cleaned} duplicate heartbeat task(s) for company ${company.name}`); - } - } - } catch (err) { - logger.error(`[heartbeat] Heartbeat task cleanup failed: ${err instanceof Error ? err.message : String(err)}`); - } - heartbeatTimer = setInterval(() => { try { if (isQuitting() || !hasWorkerReady()) return;