Not sure on the cause but if you do:
mp.set_start_method('fork', force=True)
There is no semaphore leakage
works most of time, this occurs only few times
check on the iteration on the right side,
i tried to start the experiment few times, and sometimes, 1 or 2 of the experiment seems just won’t start
Let me check, see what can be learned ...
we need to evaluate the result across many random seeds, so each task needs to log the result independently.
Ohh that kind of makes sense to me 🙂
Yes I'm also getting:
/usr/local/lib/python3.6/multiprocessing/semaphore_tracker.py:143: UserWarning: semaphore_tracker: There appear to be 74 leaked semaphores to clean up at shutdown
len(cache))
Not sure about that ...
and one experiment takes 40 hours to run, so i let them run in parallel
in my case, we need to evaluate the result across many random seeds, so each task needs to log the result independently.
Wouldn't it make sense to use a single one ?
there is a semaphore warning, not sure if it’s related
Can you resend it?
Is the Task marked as closed when the process ends ?
when i run the code i send you the other day, logging is perfect, but at the end of the code there is a semaphore warning, not sure if it’s related
No need, it should auto close it if you started it with Task.init (or the agent executed it)
one quick question is that do i need to do some task.close() at the end of each process?
Let me know if it solved it, if it did I'll make sure we push the RC