-
Notifications
You must be signed in to change notification settings - Fork 45
Open
Labels
bugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or request
Description
In v4, the Limiter class has some unpicklable attributes (lock and _thread_local). This is relevant for multiprocessing, which pickles objects before passing them to worker processes. This worked in past versions, but currently raises errors like:
TypeError: cannot pickle '_thread.RLock' objectThis could be done by implementing Limiter.__getstate__ and __setstate__ to remove and recreate these attributes (example: https://github.com/JWCook/requests-ratelimiter/pull/129/changes).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or request