Test
This commit is contained in:
parent
a7e520ff7b
commit
59e95a3a33
4
index.js
4
index.js
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue