Skip to content
This repository was archived by the owner on Jul 10, 2025. It is now read-only.

Commit a2684d9

Browse files
Adds healthcheck (#20)
1 parent 38d816d commit a2684d9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

app.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,3 +181,9 @@ def get_details(request: Request, project_id: str, task_id: str):
181181
url = f"{BASE_URI}/project/{project_id}/import/task/{task_id}"
182182
resp = requests.get(url, params={"user_id": user_id})
183183
return handle_response(resp)
184+
185+
186+
@app.get("/healthcheck")
187+
def healthcheck() -> responses.PlainTextResponse:
188+
headers = {"APP": "OK"}
189+
return responses.PlainTextResponse("OK", headers=headers)

0 commit comments

Comments
 (0)