Closed the-noble-argon closed 1 year ago
So more light has been shed on this and it may not be an issue with PyCall.jl
wait(firstTask)
wait.(taskList)
which appears to have resolved the issue on Windows (apparently Julia exits and tries to garbage-collect the results before the tasks are finished)
I'm trying to use PyCall in a background task while executing some pure Julia code, and I'm getting some thread safety issues. I tried putting all my python code into a ReentrantLock() but it's still failing. I made a relatively simple example of how to break this.
The end result is an error as follows: