We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent abf1ff9 commit daccf8cCopy full SHA for daccf8c
docs/tutorials/task-cookbook.rst
@@ -45,7 +45,7 @@ The cache key expires after some time in case something unexpected happens
45
feed_url_digest = md5(feed_url).hexdigest()
46
lock_id = '{0}-lock-{1}'.format(self.name, feed_url_hexdigest)
47
48
- # cache.add fails if if the key already exists
+ # cache.add fails if the key already exists
49
acquire_lock = lambda: cache.add(lock_id, 'true', LOCK_EXPIRE)
50
# memcache delete is very slow, but we have to use it to take
51
# advantage of using add() for atomic locking
0 commit comments