. event loops are single threaded by default. python gets confused when multiple threads try to access the single event loop owned by the python process.
Instead, create a fresh event loop at the start of your tasks with
. Also its probably best if you close the loop when the task finishes.