-
Notifications
You must be signed in to change notification settings - Fork 48
Closed
Labels
Description
I'm using the Redis backend and basically copied the code from the module in sqlalchemy that contains the CachingQuery class. However I am using manual keys.
With the following configuration I get the intermittent error in subject line.
regions["default"] = make_region(key_mangler=md5_key_mangler).configure( "dogpile.cache.redis", expiration_time=3600, arguments={ "host": config["redis"].get("host"), "redis_expiration_time": 60 * 60 * 2, "distributed_lock": True, "thread_local_lock": False, }, )
Here's the code where it occurs:
`
_async = False
if self._has_value(createdtime):
has_value = True
--> if not self.mutex.acquire(False):
log.debug("creation function in progress elsewhere, returning")
return NOT_REGENERATED
else:
has_value = False
log.debug("no value, waiting for create lock")`
Any suggestions would be appreciated.
Reactions are currently unavailable