Skip to content

Commit

Permalink
Adding /health check
Browse files Browse the repository at this point in the history
  • Loading branch information
martinhoyer committed Aug 15, 2024
1 parent 313ae16 commit 7f171a7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,7 @@ def _to_task_out(r: AsyncResult) -> TaskOut | str:
result=r.traceback if r.failed() else r.result,
status_callback_url=f'{os.getenv("API_HOSTNAME")}/status?task-id={r.task_id}'
)

@app.get("/health")
def health_check():
return {"status": "healthy"}

0 comments on commit 7f171a7

Please sign in to comment.