Update health_service.py

Adding a health service url to be able to manage the container on cloud based environments. 

Signed-off-by: falkoro <39274208+falkoro@users.noreply.github.com>
falkoro 2 years ago committed by GitHub
parent 5405a33bf2
commit b0ad5a85b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -8,7 +8,7 @@ app = Flask(__name__)
start_time = datetime.datetime.now()
@app.route("/")
@app.route('/healthz')
def health():
# Find the difference between the current time and start_time in seconds
uptime = (datetime.datetime.now() - start_time).total_seconds()

Loading…
Cancel
Save