Commit 02b5dfc0 authored by novelailab's avatar novelailab

readiness probe on top of startup

parent 1faea315
......@@ -94,6 +94,10 @@ def init_config_model():
# Mark that our model is loaded.
f = open("/tmp/health_startup", "w")
f.close()
f = open("/tmp/health_readiness", "w")
f.close()
time_load = time.time() - load_time
logger.info(f"Models loaded in {time_load:.2f}s")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment