Commit 7ccb3dfa authored by novelailab's avatar novelailab

hm

parent 117155c0
...@@ -92,11 +92,9 @@ async def handle_logging_and_errors(request: Request, call_next): ...@@ -92,11 +92,9 @@ async def handle_logging_and_errors(request: Request, call_next):
process_time = time.time() - t process_time = time.time() - t
response.headers["X-Process-Time"] = str(process_time) response.headers["X-Process-Time"] = str(process_time)
logger.info(f"Request took {t:.3f} seconds") logger.info(f"Request took {t:.3f} seconds")
if not sent_first_message: f = open("/tmp/health_readiness", "w")
f = open("/tmp/health_readiness", "w") f.close()
f.close()
sent_first_message = True
if os.environ['DEV'] == "False": if os.environ['DEV'] == "False":
f = open("/tmp/healthy", "w") f = open("/tmp/healthy", "w")
......
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