From 328f87c9b19571783aad52fbb7643169a46dbe63 Mon Sep 17 00:00:00 2001 From: SimonDegrafKern Date: Wed, 8 Mar 2023 15:16:40 +0100 Subject: [PATCH] Adds healthcheck --- app.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app.py b/app.py index bc0775d..0d1c03c 100644 --- a/app.py +++ b/app.py @@ -181,3 +181,9 @@ def get_details(request: Request, project_id: str, task_id: str): url = f"{BASE_URI}/project/{project_id}/import/task/{task_id}" resp = requests.get(url, params={"user_id": user_id}) return handle_response(resp) + + +@app.get("/healthcheck") +def healthcheck() -> responses.PlainTextResponse: + headers = {"APP": "OK"} + return responses.PlainTextResponse("OK", headers=headers)