mirror of
https://github.com/Start9Labs/start-sdk.git
synced 2026-03-26 02:11:56 +00:00
chore: Make sure that the health check doesn't stop the wholesystem
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -406,6 +406,6 @@ oldSpecToBuilder(
|
||||
},
|
||||
},
|
||||
{
|
||||
startSdk: "../",
|
||||
startSdk: "start-sdk/lib",
|
||||
},
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user