Skip to content

Commit

Permalink
Merge pull request #85 from danceb/master
Browse files Browse the repository at this point in the history
add readyness and liveness probe endpoints
  • Loading branch information
manisandro authored Dec 16, 2024
2 parents abd8821 + da02b65 commit c475d67
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,18 @@ def resources():
return jsonify({'error': str(e)}), 500


""" readyness probe endpoint """
@app.route("/ready", methods=['GET'])
def ready():
return jsonify({"status": "OK"})


""" liveness probe endpoint """
@app.route("/healthz", methods=['GET'])
def healthz():
return jsonify({"status": "OK"})


# local webserver
if __name__ == '__main__':
print("Starting ConfigGenerator service...")
Expand Down

0 comments on commit c475d67

Please sign in to comment.