L7R7 / gitlab-ci-build-statuses

Get the statuses of the CI pipelines in a group in Gitlab CI and display them on an HTML page
Apache License 2.0
10 stars 1 forks source link

App shouldn't be healthy if the thread for updating the build statuses dies #1

Closed L7R7 closed 3 years ago

L7R7 commented 4 years ago

The app is updating the build statuses in a separate thread than the thread the HTTP service is served from. Since the health endpoint will always return 200 OK, the app appears to be healthy as long as the web server is up and running. This means that if the thread for updating the statuses dies for some reason, the app will keep running with stale information.

To reflect this, the app should indicate that something is wrong when any of the threads are not running anymore