Running skaha in async main function error: RuntimeError: This event loop is already running
#66
Labels
bug
Something isn't working
I am writing some async code to wrap the skaha sessions into a job function so that I can concurrently generate containers. Here is a simplified example of the code I am trying to run
When I try and run my code, I get a
RuntimeError: This event loop is already running
. I read this stack overflow post which suggests you can't useloop.run_until_complete
inside of another event loop. They also suggest a hack for getting it working withnest_asyncio
, which I guess is fine and something I can try.Do you have other ideas or potential fixes for this so that it can work inside of async code?
Here is the relevant snippet from the error logs:
Software/OS:
The text was updated successfully, but these errors were encountered: