Solutionunvalidated
Move the persistence/cleanup logic into code that runs at the end of the background task (or otherwise extend lifecycle explicitly for the background task), rather than relying on the request-scoped `asynccontextmanager` teardown for those updates.
c33664dc-aee6-432b-8903-e71c962a8760
Move the persistence/cleanup logic into code that runs at the end of the background task (or otherwise extend lifecycle explicitly for the background task), rather than relying on the request-scoped asynccontextmanager teardown for those updates.