aboutsummaryrefslogtreecommitdiffstats
path: root/miss_htbt_service/check_health.py
diff options
context:
space:
mode:
Diffstat (limited to 'miss_htbt_service/check_health.py')
-rw-r--r--miss_htbt_service/check_health.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/miss_htbt_service/check_health.py b/miss_htbt_service/check_health.py
index a010b31..4d04210 100644
--- a/miss_htbt_service/check_health.py
+++ b/miss_htbt_service/check_health.py
@@ -57,9 +57,13 @@ class GetHandler(BaseHTTPRequestHandler):
return
-if __name__ == '__main__':
+def start_health_check_server() -> None:
from http.server import HTTPServer
server = HTTPServer(("", 10002), GetHandler)
print('Starting server at http://localhost:10002')
server.serve_forever()
+
+
+if __name__ == '__main__':
+ start_health_check_server()