This commit is contained in:
Christopher Cookman 2026-01-25 15:25:57 -07:00
parent a7e520ff7b
commit 59e95a3a33

View file

@ -80,9 +80,7 @@ app.listen(port, () => {
if (err) {
return console.error('Failed to run heartbeat check', err);
}
if (!rows || rows.length === 0) {
return console.log("No hb missed"); // No missed heartbeats
}
console.log(rows)
rows.forEach(row => {
console.log(`Server ${row.id} missed heartbeat check. Marking as inactive.`);
// Set endTime to last known heartbeatCheck time, shutdownReason "missedHeartbeat"