asyncio/aiohttp - create_task() blocks event loop, gather results in “This event loop is already running ”
问题 I cannot get both my consumer and my producer running at the same time, it seems worker(), or the aiohttp server are blocking - even when executed simultaneously with asyncio.gather() If instead I do loop.create_task(worker), this will block and server will never be started. I've tried every variation I can imagine, including nest_asyncio module - and I can only ever get one of the two components running. What am I doing wrong? async def worker(): batch_size = 30 print("running worker") while