Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve healthcheck #56

Merged
merged 4 commits into from
Feb 5, 2016
Merged

Improve healthcheck #56

merged 4 commits into from
Feb 5, 2016

Conversation

milingo
Copy link
Contributor

@milingo milingo commented Feb 4, 2016

Change-Id: Iff42c564191e13ea0f8d9b69e3dd13d461a266d1

Change-Id: Iff42c564191e13ea0f8d9b69e3dd13d461a266d1
@@ -47,7 +47,7 @@ function checkServerStatus (req, res) {
var promises = modules.map(function (module) {
return new Promise(function (resolve) {
https.get(path.replace('{{module}}', module) + '/version', function (res) {
serverStatus.statuses[module] = res.statusCode === 200
serverStatus.statuses[module] = Math.floor(res.statusCode/100) === 2;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@milingo el bug no es ese!
El bug es que no se está seteando a true el estado... Y ademas creo que res.statusCode es 404, igual no se está haciendo bien el callback..

Miguel Jimenez Garcia added 3 commits February 5, 2016 12:54
Change-Id: Iff42c564191e13ea0f8d9b69e3dd13d461a266d1
…mposr

Change-Id: I1e4a46e4009901e7ed9234bb191ed8ae97cbcfdc
Change-Id: Ib8a1eb8498413ac7e208bab21a22b0d2bd4a8bc9
rafinskipg added a commit that referenced this pull request Feb 5, 2016
@rafinskipg rafinskipg merged commit b8a07ab into bq:master Feb 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants