Skip to content

Commit 0ef9a8c

Browse files
authored
Revert "Skip heartbeat on /healthz endpoint (#2332)"
This reverts commit 037a0e0.
1 parent 037a0e0 commit 0ef9a8c

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/node/routes/index.ts

+1-5
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,7 @@ export const register = async (
6666
app.use(bodyParser.urlencoded({ extended: true }))
6767

6868
const common: express.RequestHandler = (req, _, next) => {
69-
// /healthz|/healthz/ needs to be excluded otherwise health checks will make
70-
// it look like code-server is always in use.
71-
if (!/^\/healthz\/?$/.test(req.url)) {
72-
heart.beat()
73-
}
69+
heart.beat()
7470

7571
// Add common variables routes can use.
7672
req.args = args

0 commit comments

Comments
 (0)