Skip to content

Commit ed5a40d

Browse files
committed
Removing health check
1 parent 36b8917 commit ed5a40d

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

src/services/HealthCheckService.js

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,24 @@
22
* Health Check Service
33
*/
44

5-
const errors = require('common-errors')
6-
const helper = require('../common/helper')
5+
// const errors = require('common-errors')
6+
// const helper = require('../common/helper')
77

88
/**
99
* Check if the elasticsearch connection is active
1010
*/
1111

1212
function * check () {
13-
const esClient = helper.getEsClient()
13+
// const esClient = helper.getEsClient()
1414

15-
try {
16-
yield esClient.ping({
17-
requestTimeout: 10000
18-
})
19-
} catch (e) {
20-
throw new errors.HttpStatusError(503, 'Elasticsearch instance cannot be reached')
21-
}
15+
// try {
16+
// yield esClient.ping({
17+
// requestTimeout: 10000
18+
// })
19+
20+
// } catch (e) {
21+
// throw new errors.HttpStatusError(503, 'Elasticsearch instance cannot be reached')
22+
// }
2223

2324
return {
2425
checksRun: 1

0 commit comments

Comments
 (0)