Hello,
curious:
Can you instead try passing in the arguments explicitly (not sure if I am entering it correctly but try other than entering a list - you can even first try with one entry as a starting point):
results = await asyncio.gather(tasks[0](), tasks[1](), tasks[2]())
From a previous post, they were having a similar experience.
Hi! I’m using python 3.11.4 in a django project with websockets.
I have a function that works fine when calling it with await, but when trying to run multiple functions at once with asyncio.gather it hangs. Even if I only call gather with one function:
My code looks like this (hangs):
evaluations = []
async for source_pitch in self.source_pitches.all():
evaluations.append(Evaluation.create(source_pitch, batch=self))
await asyncio.gather(*evaluations, return…