From 052ff93e07debc6fbd46d0f48669cdcb4b2c78bc Mon Sep 17 00:00:00 2001 From: Dotta Date: Mon, 16 Nov 2026 18:06:16 -0600 Subject: [PATCH] fix: reconcile exact terminal-run hints without broad delay --- .../src/modules/active-run-watchdog/adapters/deadline-work.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/modules/active-run-watchdog/adapters/deadline-work.ts b/server/src/modules/active-run-watchdog/adapters/deadline-work.ts index 38d182c2f5e..0e3477a10fe 100644 --- a/server/src/modules/active-run-watchdog/adapters/deadline-work.ts +++ b/server/src/modules/active-run-watchdog/adapters/deadline-work.ts @@ -22,7 +22,7 @@ export function registerActiveRunSilenceWork(db: Db, const worker = registerScopedDeadlineWork(coordinator, { onStop: () => { for (const stop of subscriptions.splice(0)) stop(); }, queue: DELIVERY_QUEUES.activeRunSilence, - reconstructionIntervalMs: 30_000, + reconstructionIntervalMs: scope => scope?.runId ? 0 : 30_000, beforePass: async () => { enabled = await owner.enabled(); }, decodeScope: hint => hint === "*" ? undefined : JSON.parse(hint), matches: (entry, scope) => !scope || entry.companyId === scope.companyId && (!scope.runId || entry.id === scope.runId) && (!scope.issueId || entry.issueId === scope.issueId),