This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author odinsbane
Recipients mneerup, odinsbane
Date 2020-01-03.15:57:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1578067053.96.0.689983339935.issue39201@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2020-01-03 15:57:34odinsbanesetrecipients: + odinsbane, mneerup
2020-01-03 15:57:33odinsbanesetmessageid: <1578067053.96.0.689983339935.issue39201@roundup.psfhosted.org>
2020-01-03 15:57:33odinsbanelinkissue39201 messages
2020-01-03 15:57:33odinsbanecreate