Closed Vygo closed 7 months ago
Interesting.....I don't know the state of the project as it relates to thread safety but this potentially could be shored up. Would you like to:
Closing due to inactivity. While I think it's a good idea, no one has stepped up to take this issue on.
We've been getting KeyError from Cachetool and after internal investigation we found out that it is coming from with the zenpy usage of cachetools
Zenpy uses cachetools internally and doesn’t have a lock
In zenpy/lib/cache there exists class ZenpyCache(object): which has a lock around the purge function but nothing else.
The issue is that other functions on the class such as
have no lock, and if multiple deletes happen at the same time in different threads, it causes a key error. This is the sequence of events within cachetools