summaryrefslogtreecommitdiff
path: root/hooks/server/health.ts
diff options
context:
space:
mode:
authorElizabeth <lizhunt@amazon.com>2025-05-28 15:05:38 -0700
committerElizabeth <lizhunt@amazon.com>2025-05-28 15:05:38 -0700
commit3005cc83e605fb89b079cf0e6fd0ec95cd27b30e (patch)
tree992c5933f2ec4a75e32469ddd772c61dbcb2e2fd /hooks/server/health.ts
parente3cf820b07e282221502cf2f116c9780b7375e0e (diff)
downloadci-3005cc83e605fb89b079cf0e6fd0ec95cd27b30e.tar.gz
ci-3005cc83e605fb89b079cf0e6fd0ec95cd27b30e.zip
Run prettier, add zed settings
Diffstat (limited to 'hooks/server/health.ts')
-rw-r--r--hooks/server/health.ts9
1 files changed, 6 insertions, 3 deletions
diff --git a/hooks/server/health.ts b/hooks/server/health.ts
index 2f67aa4..1acc074 100644
--- a/hooks/server/health.ts
+++ b/hooks/server/health.ts
@@ -13,13 +13,16 @@ import {
export const healthCheck: HealthChecker = (
input: ITraceable<HealthCheckInput, ServerTrace>,
): Promise<IEither<Error, HealthCheckOutput>> =>
- input.bimap(TraceUtil.withFunctionTrace(healthCheck))
+ input
+ .bimap(TraceUtil.withFunctionTrace(healthCheck))
.move(getRequiredEnv("LAMINAR_HOST"))
// ensure LAMINAR_HOST is propagated to getStdout for other procedures
.map((e) => e.get().moveRight(["laminarc", "show-jobs"]))
.map((i) =>
- i.get().mapRight(i.move.apply)
+ i
+ .get()
+ .mapRight(i.move.apply)
.flatMapAsync(getStdout.apply)
- .then((gotJobs) => gotJobs.moveRight(HealthCheckOutput.YAASSSLAYQUEEN))
+ .then((gotJobs) => gotJobs.moveRight(HealthCheckOutput.YAASSSLAYQUEEN)),
)
.get();