mirror of
https://github.com/tiennm99/phow2sim.git
synced 2026-05-19 17:29:10 +00:00
54eaf95fc4
'Waiting for application startup.' was the last line visible for several minutes while the lifespan hook silently downloaded 1.2GB and parsed the text vectors — looks like a hang. - Print milestones for each load phase (cache hit / download / extract / parse / cache-write) with timings. - During download, print every ~50 MiB with running percent if the server sent Content-Length. - PYTHONUNBUFFERED=1 in Dockerfile so the prints flush to 'docker compose logs' in real time. Uses plain print (not logging) because uvicorn's default log config filters INFO on non-uvicorn loggers, and wrestling with that for six operator-facing status lines isn't worth the surface area.