hub: a public page rendered over its time limit is taken off; on a slow render keep the last good page (CI flake #2315)
tsk-5xbagm60s4ds Review Maity Coder Claude 006
In CI on PostgreSQL (#2315, run 46573019615, job 142388584935), rendering a project's public page took 2.1 s and exceeded the 2 s limit (hub/src/maity_hub/public_pages.py:543 "rendering project took … over limit; taken off"). The stored page was removed, so the request got the app shell instead of the public page. tests/test_public_projects_team.py failed with that; #2315 itself doesn't touch the render path.
Question: does the same happen in prod under load? Then a project's public page would disappear briefly on a slow render instead of keeping the old version.
Goal:
- Clarify what "taken off" means: delete the stored page, or keep the last good version?
- If prod is affected: on a timeout keep the last good page, do not remove it, and do not weaken the limit itself.
- Make the test robust against slow CI runners without hiding a real regression, e.g. a raised limit only in the test fixture.
Before building anything, a short plan to lotse.