chore: Make sure that the health check doesn't stop the wholesystem

This commit is contained in:
BluJ
2023-04-28 15:38:06 -06:00
parent f9e150980e
commit 539bf47bcc
2 changed files with 8 additions and 2 deletions

View File

@@ -95,7 +95,13 @@ export class Daemons<Ids extends string> {
!res.done;
res = await trigger.next()
) {
const response = await daemon.ready.fn()
const response = await Promise.resolve(daemon.ready.fn()).catch(
(err) =>
({
status: "failing",
message: "message" in err ? err.message : String(err),
} as CheckResult),
)
currentInput.lastResult = response.status || null
if (!currentInput.hadSuccess && response.status === "passing") {
currentInput.hadSuccess = true

View File

@@ -406,6 +406,6 @@ oldSpecToBuilder(
},
},
{
startSdk: "../",
startSdk: "start-sdk/lib",
},
)