From 2ae2ebc8aa7c4600f499ab7d2264dcb1d16db4ae Mon Sep 17 00:00:00 2001 From: Elizabeth Date: Mon, 2 Jun 2025 19:27:15 -0700 Subject: Fixes when getStdout would throw early --- server/health.ts | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'server/health.ts') diff --git a/server/health.ts b/server/health.ts index 8fbc69d..e69077b 100644 --- a/server/health.ts +++ b/server/health.ts @@ -17,9 +17,16 @@ export const healthCheck: HealthChecker = ( .bimap(TraceUtil.withFunctionTrace(healthCheck)) .move(getRequiredEnv("LAMINAR_HOST")) // ensure LAMINAR_HOST is propagated to getStdout for other procedures - .map((tEitherEnv) => tEitherEnv.get() + .map((tEitherEnv) => + tEitherEnv + .get() .flatMapAsync((_hasEnv) => - getStdout(tEitherEnv.move(["laminarc", "show-jobs"])) - )) - .map(TraceUtil.promiseify((stdout) => stdout.get().moveRight(HealthCheckOutput.YAASSSLAYQUEEN))) + getStdout(tEitherEnv.move(["laminarc", "show-jobs"])), + ), + ) + .map( + TraceUtil.promiseify((stdout) => + stdout.get().moveRight(HealthCheckOutput.YAASSSLAYQUEEN), + ), + ) .get(); -- cgit v1.2.3-70-g09d2