From 6979f073078cdd747b46e7cd0fb442928e0182b0 Mon Sep 17 00:00:00 2001 From: Zac Gaetano Date: Mon, 1 Jun 2026 23:23:07 +0000 Subject: [PATCH] fix(capture-manager): raise readFirstStderrLine timeout 35s->300s for flock queue With 8 deltacast bridges serializing via flock (each holding the lock for ~35s during signal wait + settle), the last bridge in queue waits ~280s before getting the lock. The 35s readFirstStderrLine timeout was firing before those bridges could even open the board, causing them to fail silently while the bridge was still queued. 300s (5min) covers 8 bridges * 35s each with margin. --- services/capture/src/capture-manager.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/capture/src/capture-manager.js b/services/capture/src/capture-manager.js index b663834..20e3c97 100644 --- a/services/capture/src/capture-manager.js +++ b/services/capture/src/capture-manager.js @@ -10,7 +10,7 @@ import { createUploadStream } from './s3/client.js'; * Rejects if the process exits with a non-zero code before emitting a line, * or if timeoutMs elapses. */ -function readFirstStderrLine(proc, timeoutMs = 35_000) { +function readFirstStderrLine(proc, timeoutMs = 300_000) { return new Promise((resolve, reject) => { let buf = ''; let settled = false; @@ -614,7 +614,7 @@ class CaptureManager { '--signal-timeout', '30', ], { stdio: ['ignore', 'pipe', 'pipe'] }); - const fmt = await readFirstStderrLine(bridge, 35_000); + const fmt = await readFirstStderrLine(bridge, 300_000); bridge.stderr.on('data', (d) => console.error(`[deltacast-bridge] ${d.toString().trimEnd()}`)); return {