STINNER Victor <vstin...@python.org> added the comment:
> Issue26789. asyncio creates reference loops which caused to executing code > late at shutdown, and that code uses logging which always fail. Well, I suggest to attempt fixing logging. The reference cycle in asyncio.Task.set_exception() is *by design*. It's really trick to fix it. Since the creation of asyncio, nobody managed to find a solution to fix it. Once I propose to create an asyncio task forcing a GC collection every minute, but it was never implemented. If you have a clever idea to fix Task.set_exception() design, please open a separated issue. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue26789> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com