mirror of
https://github.com/storytold/storyteller-ml.git
synced 2026-10-17 00:23:14 +00:00
change health check endpoint response to match other services
This commit is contained in:
@@ -210,7 +210,10 @@ class StatusHandler():
|
||||
def on_get(self, request, response):
|
||||
LOGGER.info("/_status endpoint requested.")
|
||||
response.content_type = 'application/json'
|
||||
response.body = '{"status": "ok"}'
|
||||
# FakeYou / Storyteller universal health checking semantics:
|
||||
# success (bool) - calling the endpoint worked (no middle man proxy, etc.)
|
||||
# is_healthy (bool) - dependencies are ok
|
||||
response.body = '{"success": true, "is_healthy": true}'
|
||||
|
||||
class ApiHandler():
|
||||
def on_post(self, request, response):
|
||||
|
||||
Reference in New Issue
Block a user