Skip to content

Commit

Permalink
feat: adding health check (#3)
Browse files Browse the repository at this point in the history
* feat: adding health check

Co-authored-by: codiumai-pr-agent-free[bot] <138128286+codiumai-pr-agent-free[bot]@users.noreply.github.com>
  • Loading branch information
NichArchA82 and codiumai-pr-agent-free[bot] authored Oct 19, 2024
1 parent b0ca718 commit 8275ed7
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,13 @@ def call_github_user_management_workflow():
response = requests.post(url=GITHUB_DISPATCH_URL, data='{"ref":"refs/heads/main"}', headers=headers)

# return the status code
return response.status_code
return response.status_code

@app.get("/health")
async def health():
"""health check
Returns:
dict: health status
"""
return {"status": "healthy"}

0 comments on commit 8275ed7

Please sign in to comment.