Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Commit

Permalink
Merge pull request #5424 from mozilla-services/remove-heartbeat
Browse files Browse the repository at this point in the history
Fix #5423, remove heartbeat database check
  • Loading branch information
ianb authored Dec 10, 2019
2 parents 3a34ea2 + 68243ed commit 9c1936e
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions server/src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -355,21 +355,7 @@ app.get("/__lbheartbeat__", function(req, res) {

// This tests if the server is really working
app.get("/__heartbeat__", function(req, res) {
dbschema
.connectionOK()
.then(ok => {
if (!ok) {
statsd.increment("heartbeat.fail");
res.status(500).send("schema fail");
} else {
statsd.increment("heartbeat.pass");
res.send("OK");
}
})
.catch(error => {
statsd.increment("heartbeat.fail");
res.status(500).send("database fail");
});
res.send("OK");
});

app.use("/", require("./pages/homepage/server").app);
Expand Down

0 comments on commit 9c1936e

Please sign in to comment.