Closed bittremieux closed 2 years ago
I've added PR #67 to implement that behavior. The previous behavior is available if the ephemeral_pool
attribute is set to False
(now True
by default).
It's hard to reproduce the message since it seems to be sensitive to the order in which some standard library modules are destroyed during interpreter shutdown.
Looks like a good fix. Thanks!
The
PROXIAggregator
uses aThreadPool
to query multiple PROXI resources simultaneously. ThisThreadPool
is stored between multiple function calls, I assume to avoid the overhead of creating theThreadPool
. However, it is never properly closed, resulting in the following error:This does not interfere with my code, as it only happens at the end, presumably when all objects are cleaned up. However, it would be nice to avoid having this error at all.
Maybe the
ThreadPool
should just be created for resolving of individual USIs, and then immediately cleaned up? The overhead of repeatedly creating the pool should be pretty minimal, especially compared to REST API calls.