Question on running queries in windows env.
I get an error
RuntimeError: Event loop is closed
, but after troubleshooting I notice that my script ran just fine. It crashed after the script eded. I suppose I was just ignoring it at first, but should I? I'm using asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
. Should I just ignore the error or should I deal with it? if the latter, how?1 Reply
We've had issues before with the asyncio event loop in the Python driver, as the driver will try to start and close the loop. This could clash with the event loop used by your script/application. Can you tell what was attempting to use the event loop when that error returned?