diff options
Diffstat (limited to 'server/health.ts')
-rw-r--r-- | server/health.ts | 15 |
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(); |