diff --git a/backend/src/process.py b/backend/src/process.py index 71416af4e..cc7ba9625 100644 --- a/backend/src/process.py +++ b/backend/src/process.py @@ -657,6 +657,9 @@ async def update_progress(): await self.progress.suspend() await update_progress() + # cooperative yield so the event loop can run + # https://stackoverflow.com/questions/36647825/cooperative-yield-in-asyncio + await asyncio.sleep(0) await self.progress.suspend() except Aborted: raise