summaryrefslogtreecommitdiff
path: root/server/health.ts
diff options
context:
space:
mode:
authorElizabeth <me@liz.coffee>2025-06-02 19:27:15 -0700
committerElizabeth <me@liz.coffee>2025-06-02 19:27:15 -0700
commit2ae2ebc8aa7c4600f499ab7d2264dcb1d16db4ae (patch)
tree8db4b1ac04da35bed464cc8e4678f90b9eb6bda2 /server/health.ts
parenta16fbd3eaa165b3226a3b0ed9848b51718aaeafa (diff)
downloadci-2ae2ebc8aa7c4600f499ab7d2264dcb1d16db4ae.tar.gz
ci-2ae2ebc8aa7c4600f499ab7d2264dcb1d16db4ae.zip
Fixes when getStdout would throw early
Diffstat (limited to 'server/health.ts')
-rw-r--r--server/health.ts15
1 files changed, 11 insertions, 4 deletions
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();