Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add simple readiness check #256

Merged
merged 1 commit into from
Mar 30, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions packet/routes/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,12 @@ def upperclassman_stats(uid):
return stats.upperclassman_stats(uid)


@app.route('/readiness')
def readiness() -> tuple[str, int]:
'''A basic healthcheck. Returns 200 to indicate flask is running'''
return "ready", 200


def commit_sig(packet, was_100, uid):
packet_signed_notification(packet, uid)
db.session.commit()
Expand Down