@@ -29,9 +29,7 @@ async def startup(fast_api: FastAPI):
print(f"{mysql_engine=}")
print("mysql init done")
task = asyncio.create_task(internal_loop(influxdb_client, mysql_client))
try:
yield
finally:
# Shutdown logic
await internal_loop_stop(task)
await influxdb_client.close()
The note is not visible to the blocked user.