From 5c81576a9f6afe5bdb85dee0def3d9ddaffa9935 Mon Sep 17 00:00:00 2001 From: ghost <49853598+JSONbored@users.noreply.github.com> Date: Tue, 7 Jul 2026 03:27:07 -0700 Subject: [PATCH] fix(selfhost): catch startup orb relay drain failures --- src/server.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/server.ts b/src/server.ts index 12a5eae69d..99005fc6ed 100644 --- a/src/server.ts +++ b/src/server.ts @@ -1026,7 +1026,9 @@ async function main(): Promise { drainInFlight = false; } }; - void drainRelay(); + void drainRelay().catch((error) => + captureError(error, { kind: "orb_relay_drain" }), + ); // 30s matches broker-client's request timeout so a slow/degraded broker's in-flight drain has fully // timed out (or completed) before the next tick would otherwise pile another request on top of it. setInterval(