Message359240
This issue also affects me, pyth. I tried it out with various combinations of sleep, and durations of tasks, but what I noticed is that threading_shutdown_locks continues to grow at each iteration.
for i in range(100000):
for j in range(10):
timer = threading.Thread(target = callback)
timer.start()
time.sleep(1)
print(len(threading._shutdown_locks))
If I accumulate the Timer/Thread s and join them, then the _shutdown_locks will be cleared. |
|
Date |
User |
Action |
Args |
2020-01-03 15:57:34 | odinsbane | set | recipients:
+ odinsbane, mneerup |
2020-01-03 15:57:33 | odinsbane | set | messageid: <1578067053.96.0.689983339935.issue39201@roundup.psfhosted.org> |
2020-01-03 15:57:33 | odinsbane | link | issue39201 messages |
2020-01-03 15:57:33 | odinsbane | create | |
|