Commit 7ccb3dfa authored by novelailab's avatar novelailab

hm

parent 117155c0
...@@ -93,10 +93,8 @@ async def handle_logging_and_errors(request: Request, call_next): ...@@ -93,10 +93,8 @@ async def handle_logging_and_errors(request: Request, call_next):
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