Skip to content

Commit

Permalink
feat: adding health check
Browse files Browse the repository at this point in the history
  • Loading branch information
NichArchA82 committed Oct 19, 2024
1 parent b0ca718 commit 00dc86b
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:
string: healthy
"""
return "healthy"

0 comments on commit 00dc86b

Please sign in to comment.